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]

[src]

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

[src]

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.

[src]

Retrieves the inverse of the underlying homogeneous matrix.

[src]

Computes the corresponding homogeneous matrix.

[src]

A reference to the underlying homogeneous transformation matrix.

[src]

Retrieves the underlying homogeneous matrix.

[src]

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

[src]

Gets the y field of view of the view frustrum.

[src]

Gets the near plane offset of the view frustrum.

[src]

Gets the far plane offset of the view frustrum.

[src]

Projects a point. Faster than matrix multiplication.

[src]

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

[src]

Projects a vector. Faster than matrix multiplication.

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

Trait Implementations

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

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more

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

[src]

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

1.0.0
[src]

This method tests for !=.

impl<N: Real + Rand> Rand for Perspective3<N>
[src]

[src]

Generates a random instance of this type using the specified 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