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

Method OrbitCamera

ZEngine/src/OrbitCamera.cpp:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected