Enum crayon::math::frustum::Projection [] [src]

pub enum Projection<S: BaseFloat> {
    Ortho {
        width: S,
        height: S,
        near: S,
        far: S,
    },
    Perspective {
        fovy: Rad<S>,
        aspect: S,
        near: S,
        far: S,
    },
}

Projections.

Variants

Orthographic projection.

Fields of Ortho

The width of orthographic window.

The height of orthographic window.

The near clip plane.

The far clip plane.

Perspective projection.

Fields of Perspective

Field of view in vertical.

The aspect of width / height.

The near clip plane.

The far clip plane.

Methods

impl<S: BaseFloat> Projection<S>
[src]

[src]

[src]

[src]

[src]

[src]

Gets the projection matrix in left hand coordinates.

[src]

Gets the orthographic projection matrix in left hand coordinates.

[src]

Gets the perspective projection matrix in left hand coordinates.

Trait Implementations

impl<S: Debug + BaseFloat> Debug for Projection<S>
[src]

[src]

Formats the value using the given formatter. Read more

impl<S: Clone + BaseFloat> Clone for Projection<S>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S: Copy + BaseFloat> Copy for Projection<S>
[src]

impl<S: PartialEq + BaseFloat> PartialEq for Projection<S>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

Auto Trait Implementations

impl<S> Send for Projection<S> where
    S: Send

impl<S> Sync for Projection<S> where
    S: Sync