Struct nalgebra::geometry::OrthographicBase [] [src]

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

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

Methods

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

Creates a new orthographic projection matrix.

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

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

Creates a new orthographic projection matrix from an aspect ratio and the vertical field of view.

impl<N: Real, S: Storage<N, U4, U4>> OrthographicBase<N, S>
[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.

The smallest x-coordinate of the view cuboid.

The largest x-coordinate of the view cuboid.

The smallest y-coordinate of the view cuboid.

The largest y-coordinate of the view cuboid.

The near plane offset of the view cuboid.

The far plane offset of the view cuboid.

Projects a point. Faster than matrix multiplication.

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

Projects a vector. Faster than matrix multiplication.

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

Sets the smallest x-coordinate of the view cuboid.

Sets the largest x-coordinate of the view cuboid.

Sets the smallest y-coordinate of the view cuboid.

Sets the largest y-coordinate of the view cuboid.

Sets the near plane offset of the view cuboid.

Sets the far plane offset of the view cuboid.

Sets the view cuboid coordinates along the x axis.

Sets the view cuboid coordinates along the y axis.

Sets the near and far plane offsets of the view cuboid.

Trait Implementations

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

Formats the value using the given formatter.

impl<N: Clone + Scalar, S: Clone + Storage<N, U4, U4>> Clone for OrthographicBase<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 OrthographicBase<N, S>
[src]

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

impl<N: Scalar, S: Storage<N, U4, U4>> PartialEq for OrthographicBase<N, S>
[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 OrthographicBase<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