Facebook Twitter YouTube

class OrientedCamera

Defined in:  TSCameras.h
The OrientedCamera class represents an oriented camera node in a world.
Definition

class OrientedCamera : public FrustumCamera

Member Functions
OrientedCamera::GetCameraAzimuth Returns the current azimuth angle for an oriented camera.
OrientedCamera::SetCameraAzimuth Sets the current azimuth angle for an oriented camera.
OrientedCamera::GetCameraAltitude Returns the current altitude angle for an oriented camera.
OrientedCamera::SetCameraAltitude Sets the current altitude angle for an oriented camera.
Constructor

OrientedCamera(float focal, float aspect);

Parameters
focal The focal length of the perspective projection. This determines the field of view.
aspect The aspect ratio of the projection. This is normally the ratio between the height and the width of the viewport.
Description
An oriented camera is a specialization of the frustum camera that holds two angle values, called the azimuth and altitude angles, describing the camera's orientation in space. The azimuth angle represents the camera's rotation in the horizontal plane, and the altitude angle represents the camera's rotation above the horizontal plane. Both angles are initially zero, and this corresponds to a camera pointed in the positive x direction, parallel to the horizontal plane.
Base Classes
FrustumCamera An oriented camera is a special type of frustum camera.