Struct nalgebra::geometry::Perspective3[][src]

pub struct Perspective3<N: Scalar> { /* fields omitted */ }

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

Methods

impl<N: Real> Perspective3<N>
[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.

Retrieves the inverse of the underlying homogeneous matrix.

Computes the corresponding homogeneous matrix.

A reference to the underlying homogeneous transformation matrix.

A reference to this transformation seen as a Projective3.

This transformation seen as a Projective3.

Retrieves the underlying homogeneous matrix.

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

Gets the y field of view of the view frustum.

Gets the near plane offset of the view frustum.

Gets the far plane offset of the view frustum.

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.

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

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

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

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

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

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

impl<N: Real> 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: Real> Distribution<Perspective3<N>> for Standard where
    Standard: Distribution<N>, 
[src]

Generate a random value of T, using rng as the source of randomness.

Important traits for DistIter<'a, D, R, T>

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

Auto Trait Implementations

impl<N> Send for Perspective3<N> where
    N: Send

impl<N> Sync for Perspective3<N> where
    N: Sync