(cls, pitch, yaw)
| 31 | |
| 32 | @classmethod |
| 33 | def createViewFront(cls, pitch, yaw): |
| 34 | pitch_r = glm.radians(pitch) |
| 35 | yaw_r = glm.radians(yaw) |
| 36 | |
| 37 | front = glm.vec3(0.0, 0.0, 1.0) |
| 38 | front.x = glm.cos(yaw_r) * glm.cos(pitch_r) |
| 39 | front.y = glm.sin(pitch_r) |
| 40 | front.z = glm.sin(yaw_r) * glm.cos(pitch_r) |
| 41 | return glm.normalize(front) |
| 42 | |
| 43 | |
| 44 | def updateCamera(self, delta, position): |
no outgoing calls
no test coverage detected