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

Models camera perspective settings.

Fields§

§fov: T

Field of view (in degrees).

§near_clip: T

The near clip distance.

§far_clip: T

The far clip distance.

§aspect_ratio: T

The aspect ratio, usually set to 1.0.

Implementations§

Computes a projection matrix for the camera perspective.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.