Struct nalgebra::OrthographicMatrix3 [] [src]

pub struct OrthographicMatrix3<N> { /* fields omitted */ }

A 3D orthographic projection stored as a 4D matrix.

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

Methods

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

Creates a new orthographic projection matrix.

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

Creates a new orthographic matrix from a 4D matrix.

This is unsafe because the input matrix is not checked to be a orthographic projection.

Returns a reference to the 4D matrix (using homogeneous coordinates) of this projection.

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.

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.

Projects a point.

Projects a vector.

impl<N: BaseFloat + Clone> OrthographicMatrix3<N>
[src]

Returns the 4D matrix (using homogeneous coordinates) of this projection.

Trait Implementations

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

impl<N: PartialEq> PartialEq for OrthographicMatrix3<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: Encodable> Encodable for OrthographicMatrix3<N>
[src]

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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