| 4 | namespace ZEngine::Rendering::Cameras { |
| 5 | |
| 6 | PerspectiveCamera::PerspectiveCamera(float field_of_view, float aspect_ratio, float near, float far) : m_yaw_angle(0.0f), m_pitch_angle(0.0f), m_radius(0.0f) { |
| 7 | m_camera_type = CameraType::PERSPECTIVE; |
| 8 | m_projection = Maths::perspective(field_of_view, aspect_ratio, near, far); |
| 9 | UpdateCoordinateVectors(); |
| 10 | UpdateViewMatrix(); |
| 11 | } |
| 12 | |
| 13 | void PerspectiveCamera::SetTarget(const Maths::Vector3& target) { |
| 14 | Camera::SetTarget(target); |
nothing calls this directly
no outgoing calls
no test coverage detected