Struct nalgebra::geometry::Orthographic3
[−]
[src]
pub struct Orthographic3<N: Real> { /* fields omitted */ }
A 3D orthographic projection stored as an homogeneous 4x4 matrix.
Methods
impl<N: Real> Orthographic3<N>
[src]
fn new(left: N, right: N, bottom: N, top: N, znear: N, zfar: N) -> Self
[src]
Creates a new orthographic projection matrix.
fn from_matrix_unchecked(matrix: Matrix4<N>) -> Self
[src]
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.
fn from_fov(aspect: N, vfov: N, znear: N, zfar: N) -> Self
[src]
Creates a new orthographic projection matrix from an aspect ratio and the vertical field of view.
fn inverse(&self) -> Matrix4<N>
[src]
Retrieves the inverse of the underlying homogeneous matrix.
fn to_homogeneous(&self) -> Matrix4<N>
[src]
Computes the corresponding homogeneous matrix.
fn as_matrix(&self) -> &Matrix4<N>
[src]
A reference to the underlying homogeneous transformation matrix.
fn unwrap(self) -> Matrix4<N>
[src]
Retrieves the underlying homogeneous matrix.
fn left(&self) -> N
[src]
The smallest x-coordinate of the view cuboid.
fn right(&self) -> N
[src]
The largest x-coordinate of the view cuboid.
fn bottom(&self) -> N
[src]
The smallest y-coordinate of the view cuboid.
fn top(&self) -> N
[src]
The largest y-coordinate of the view cuboid.
fn znear(&self) -> N
[src]
The near plane offset of the view cuboid.
fn zfar(&self) -> N
[src]
The far plane offset of the view cuboid.
fn project_point(&self, p: &Point3<N>) -> Point3<N>
[src]
Projects a point. Faster than matrix multiplication.
fn unproject_point(&self, p: &Point3<N>) -> Point3<N>
[src]
Un-projects a point. Faster than multiplication by the underlying matrix inverse.
fn project_vector<SB>(&self, p: &Vector<N, U3, SB>) -> Vector3<N> where
SB: Storage<N, U3>,
[src]
SB: Storage<N, U3>,
Projects a vector. Faster than matrix multiplication.
fn set_left(&mut self, left: N)
[src]
Sets the smallest x-coordinate of the view cuboid.
fn set_right(&mut self, right: N)
[src]
Sets the largest x-coordinate of the view cuboid.
fn set_bottom(&mut self, bottom: N)
[src]
Sets the smallest y-coordinate of the view cuboid.
fn set_top(&mut self, top: N)
[src]
Sets the largest y-coordinate of the view cuboid.
fn set_znear(&mut self, znear: N)
[src]
Sets the near plane offset of the view cuboid.
fn set_zfar(&mut self, zfar: N)
[src]
Sets the far plane offset of the view cuboid.
fn set_left_and_right(&mut self, left: N, right: N)
[src]
Sets the view cuboid coordinates along the x
axis.
fn set_bottom_and_top(&mut self, bottom: N, top: N)
[src]
Sets the view cuboid coordinates along the y
axis.
fn set_znear_and_zfar(&mut self, znear: N, zfar: N)
[src]
Sets the near and far plane offsets of the view cuboid.
Trait Implementations
impl<N: Real> Copy for Orthographic3<N>
[src]
impl<N: Real> Clone for Orthographic3<N>
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<N: Real> Debug for Orthographic3<N>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<N: Real> PartialEq for Orthographic3<N>
[src]
fn eq(&self, right: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.