| 14 | } |
| 15 | |
| 16 | void OrbitCamera::SetPitchAngle(float degree) { |
| 17 | auto rad = Maths::radians(degree); |
| 18 | m_pitch_angle = Maths::clamp(rad, -Maths::half_pi<float>() + 0.1f, Maths::half_pi<float>() - 0.1f); |
| 19 | } |
| 20 | |
| 21 | void OrbitCamera::SetRadius(float value) { |
| 22 | m_radius = Maths::clamp(value, 1.5f, 300.f); |
nothing calls this directly
no outgoing calls
no test coverage detected