Struct nalgebra::geometry::PerspectiveBase [] [src]

pub struct PerspectiveBase<N: Scalar, S: Storage<N, U4, U4>> { /* fields omitted */ }

A 3D perspective projection stored as an homogeneous 4x4 matrix.

Methods

impl<N, S> PerspectiveBase<N, S> where
    N: Real,
    S: OwnedStorage<N, U4, U4>,
    S::Alloc: OwnedAllocator<N, U4, U4, S>, 
[src]

Creates a new perspective matrix from the aspect ratio, y field of view, and near/far planes.

Wraps the given matrix to interpret it as a 3D perspective matrix.

It is not checked whether or not the given matrix actually represents an orthographic projection.

impl<N, S> PerspectiveBase<N, S> where
    N: Real,
    S: Storage<N, U4, U4>, 
[src]

A reference to the underlying homogeneous transformation matrix.

Retrieves the underlying homogeneous matrix.

Retrieves the inverse of the underlying homogeneous matrix.

Computes the corresponding homogeneous matrix.

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

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.

Projects a point. Faster than matrix multiplication.

Un-projects a point. Faster than multiplication by the matrix inverse.

Projects a vector. Faster than matrix multiplication.

impl<N, S> PerspectiveBase<N, S> where
    N: Real,
    S: StorageMut<N, U4, U4>, 
[src]

Updates this perspective matrix with a new width / height aspect ratio of the view frustrum.

Updates this perspective with a new y field of view of the view frustrum.

Updates this perspective matrix with a new near plane offset of the view frustrum.

Updates this perspective matrix with a new far plane offset of the view frustrum.

Updates this perspective matrix with new near and far plane offsets of the view frustrum.

Trait Implementations

impl<N: Debug + Scalar, S: Debug + Storage<N, U4, U4>> Debug for PerspectiveBase<N, S>
[src]

Formats the value using the given formatter.

impl<N: Clone + Scalar, S: Clone + Storage<N, U4, U4>> Clone for PerspectiveBase<N, S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Copy + Scalar, S: Copy + Storage<N, U4, U4>> Copy for PerspectiveBase<N, S>
[src]

impl<N, S> Eq for PerspectiveBase<N, S> where
    N: Scalar + Eq,
    S: Storage<N, U4, U4>, 
[src]

impl<N, S> PartialEq for PerspectiveBase<N, S> where
    N: Scalar,
    S: Storage<N, U4, U4>, 
[src]

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

This method tests for !=.

impl<N, S> Rand for PerspectiveBase<N, S> where
    N: Real + Rand,
    S: OwnedStorage<N, U4, U4>,
    S::Alloc: OwnedAllocator<N, U4, U4, S>, 
[src]

Generates a random instance of this type using the specified source of randomness. Read more