Struct nalgebra::Perspective3 [] [src]

pub struct Perspective3<N> {
    // some fields omitted
}

A 3D perspective projection stored without any matrix.

This maps a frustrum cube to the unit cube with corners varying from (-1, -1, -1) to (1, 1, 1). Reading or modifying its individual properties is cheap but applying the transformation is costly.

Methods

impl<N: BaseFloat> Perspective3<N>
[src]

Creates a new 3D perspective projection.

Builds a 4D projection matrix (using homogeneous coordinates) for this projection.

Build a PerspectiveMatrix3 representing this projection.

impl<N: BaseFloat> Perspective3<N>
[src]

Gets the width / height aspect ratio.

Gets the y field of view of the view frustrum.

Gets the near plane offset of the view frustrum.

Gets the far plane offset of the view frustrum.

Sets the width / height aspect ratio of the view frustrum.

This method does not build any matrix.

Sets the y field of view of the view frustrum.

This method does not build any matrix.

Sets the near plane offset of the view frustrum.

This method does not build any matrix.

Sets the far plane offset of the view frustrum.

This method does not build any matrix.

Projects a point.

Projects a vector.

Trait Implementations

impl<N: Copy> Copy for Perspective3<N>
[src]

impl<N: Debug> Debug for Perspective3<N>
[src]

Formats the value using the given formatter.

impl<N: Clone> Clone for Perspective3<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Decodable> Decodable for Perspective3<N>
[src]

impl<N: Encodable> Encodable for Perspective3<N>
[src]

impl<N: PartialEq> PartialEq for Perspective3<N>
[src]

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

This method tests for !=.

impl<N: Eq> Eq for Perspective3<N>
[src]