MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / SetPitchAngle

Method SetPitchAngle

ZEngine/src/OrbitCamera.cpp:16–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected