7 #ifndef CAFU_CAMERA_HPP_INCLUDED
8 #define CAFU_CAMERA_HPP_INCLUDED
10 #include "Math3D/Angles.hpp"
11 #include "Math3D/Matrix.hpp"
void LimitAngles()
This method wraps the yaw into the [0°, 360°[ intervall and clamps the pitch to -90° and +90°...
Definition: Camera.cpp:87
void SetLookAtPos(const Vector3fT &LookAtPos)
This method automatically computes the orientation of the camera so that it looks at the given point...
Definition: Camera.cpp:67
This class implements a camera.
Definition: Camera.hpp:17
Vector3fT GetZAxis() const
Returns the z-axis (pointing up) of the camera space.
Definition: Camera.cpp:43
Vector3fT GetYAxis() const
Returns the y-axis (pointing forward) of the camera space. This is the direction the camera is lookin...
Definition: Camera.cpp:35
float FarPlaneDist
The distance of the far clip plane to the tip of the view pyramid.
Definition: Camera.hpp:40
Vector3fT Pos
The cameras position in the world.
Definition: Camera.hpp:33
float VerticalFOV
The cameras field-of-view angle, in vertical (up/down) direction.
Definition: Camera.hpp:38
cf::math::AnglesfT Angles
The angles that describe the cameras orientation. The pitch value is limited/clamped to the interval ...
Definition: Camera.hpp:34
Vector3fT GetXAxis() const
Returns the x-axis (pointing right) of the camera space.
Definition: Camera.cpp:27
float NearPlaneDist
The distance of the near clip plane to the tip of the view pyramid.
Definition: Camera.hpp:39
const MatrixT & GetMatrix() const
Returns the matrix that represents the position and orientation of this camera.
Definition: Camera.cpp:51
float ViewDirLength
This member defines how long the view direction vector (GetYAxis()) is drawn in the 2D views...
Definition: Camera.hpp:35