| 92 | } |
| 93 | |
| 94 | void Camera::SetYRotation(const float new_val) { |
| 95 | old_y_rotation = y_rotation; |
| 96 | y_rotation = new_val; |
| 97 | |
| 98 | while (old_y_rotation >= y_rotation + 180) { |
| 99 | old_y_rotation -= 360; |
| 100 | } |
| 101 | while (old_y_rotation <= y_rotation - 180) { |
| 102 | old_y_rotation += 360; |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | void Camera::SetXRotation(const float new_val) { |
| 107 | old_x_rotation = x_rotation; |
no outgoing calls
no test coverage detected