Struct camera_controllers::CameraPerspective [] [src]

pub struct CameraPerspective<T = f32> {
    pub fov: T,
    pub near_clip: T,
    pub far_clip: T,
    pub aspect_ratio: T,
}

Models camera perspective settings.

Fields

Field of view (in degrees).

The near clip distance.

The far clip distance.

The aspect ratio, usually set to 1.0.

Methods

impl<T> CameraPerspective<T> where
    T: Float,
    f64: Cast<T>, 
[src]

Computes a projection matrix for the camera perspective.