| 4 | namespace ZEngine::Rendering::Cameras { |
| 5 | |
| 6 | OrbitCamera::OrbitCamera(float field_of_view, float aspect_ratio, float near, float far, float yaw_rad, float pitch_rad) |
| 7 | : PerspectiveCamera(field_of_view, aspect_ratio, near, far) { |
| 8 | m_yaw_angle = yaw_rad; |
| 9 | m_pitch_angle = pitch_rad; |
| 10 | } |
| 11 | |
| 12 | void OrbitCamera::SetYawAngle(float degree) { |
| 13 | m_yaw_angle = Maths::radians(degree); |
nothing calls this directly
no outgoing calls
no test coverage detected