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]
impl<N: Real> Orthographic3<N>
pub fn new(left: N, right: N, bottom: N, top: N, znear: N, zfar: N) -> Self
[src]
pub fn new(left: N, right: N, bottom: N, top: N, znear: N, zfar: N) -> Self
Creates a new orthographic projection matrix.
pub fn from_matrix_unchecked(matrix: Matrix4<N>) -> Self
[src]
pub fn from_matrix_unchecked(matrix: Matrix4<N>) -> Self
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.
pub fn from_fov(aspect: N, vfov: N, znear: N, zfar: N) -> Self
[src]
pub fn from_fov(aspect: N, vfov: N, znear: N, zfar: N) -> Self
Creates a new orthographic projection matrix from an aspect ratio and the vertical field of view.
pub fn inverse(&self) -> Matrix4<N>
[src]
pub fn inverse(&self) -> Matrix4<N>
Retrieves the inverse of the underlying homogeneous matrix.
pub fn to_homogeneous(&self) -> Matrix4<N>
[src]
pub fn to_homogeneous(&self) -> Matrix4<N>
Computes the corresponding homogeneous matrix.
pub fn as_matrix(&self) -> &Matrix4<N>
[src]
pub fn as_matrix(&self) -> &Matrix4<N>
A reference to the underlying homogeneous transformation matrix.
pub fn unwrap(self) -> Matrix4<N>
[src]
pub fn unwrap(self) -> Matrix4<N>
Retrieves the underlying homogeneous matrix.
pub fn left(&self) -> N
[src]
pub fn left(&self) -> N
The smallest x-coordinate of the view cuboid.
pub fn right(&self) -> N
[src]
pub fn right(&self) -> N
The largest x-coordinate of the view cuboid.
pub fn bottom(&self) -> N
[src]
pub fn bottom(&self) -> N
The smallest y-coordinate of the view cuboid.
pub fn top(&self) -> N
[src]
pub fn top(&self) -> N
The largest y-coordinate of the view cuboid.
pub fn znear(&self) -> N
[src]
pub fn znear(&self) -> N
The near plane offset of the view cuboid.
pub fn zfar(&self) -> N
[src]
pub fn zfar(&self) -> N
The far plane offset of the view cuboid.
pub fn project_point(&self, p: &Point3<N>) -> Point3<N>
[src]
pub fn project_point(&self, p: &Point3<N>) -> Point3<N>
Projects a point. Faster than matrix multiplication.
pub fn unproject_point(&self, p: &Point3<N>) -> Point3<N>
[src]
pub fn unproject_point(&self, p: &Point3<N>) -> Point3<N>
Un-projects a point. Faster than multiplication by the underlying matrix inverse.
pub fn project_vector<SB>(&self, p: &Vector<N, U3, SB>) -> Vector3<N> where
SB: Storage<N, U3>,
[src]
pub fn project_vector<SB>(&self, p: &Vector<N, U3, SB>) -> Vector3<N> where
SB: Storage<N, U3>,
Projects a vector. Faster than matrix multiplication.
pub fn set_left(&mut self, left: N)
[src]
pub fn set_left(&mut self, left: N)
Sets the smallest x-coordinate of the view cuboid.
pub fn set_right(&mut self, right: N)
[src]
pub fn set_right(&mut self, right: N)
Sets the largest x-coordinate of the view cuboid.
pub fn set_bottom(&mut self, bottom: N)
[src]
pub fn set_bottom(&mut self, bottom: N)
Sets the smallest y-coordinate of the view cuboid.
pub fn set_top(&mut self, top: N)
[src]
pub fn set_top(&mut self, top: N)
Sets the largest y-coordinate of the view cuboid.
pub fn set_znear(&mut self, znear: N)
[src]
pub fn set_znear(&mut self, znear: N)
Sets the near plane offset of the view cuboid.
pub fn set_zfar(&mut self, zfar: N)
[src]
pub fn set_zfar(&mut self, zfar: N)
Sets the far plane offset of the view cuboid.
pub fn set_left_and_right(&mut self, left: N, right: N)
[src]
pub fn set_left_and_right(&mut self, left: N, right: N)
Sets the view cuboid coordinates along the x
axis.
pub fn set_bottom_and_top(&mut self, bottom: N, top: N)
[src]
pub fn set_bottom_and_top(&mut self, bottom: N, top: N)
Sets the view cuboid coordinates along the y
axis.
pub fn set_znear_and_zfar(&mut self, znear: N, zfar: N)
[src]
pub fn set_znear_and_zfar(&mut self, znear: N, zfar: N)
Sets the near and far plane offsets of the view cuboid.
Trait Implementations
impl<N: Real> Copy for Orthographic3<N>
[src]
impl<N: Real> Copy for Orthographic3<N>
impl<N: Real> Clone for Orthographic3<N>
[src]
impl<N: Real> Clone for Orthographic3<N>
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<N: Real> Debug for Orthographic3<N>
[src]
impl<N: Real> Debug for Orthographic3<N>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<N: Real> PartialEq for Orthographic3<N>
[src]
impl<N: Real> PartialEq for Orthographic3<N>
fn eq(&self, right: &Self) -> bool
[src]
fn eq(&self, right: &Self) -> bool
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]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<N: Real> Distribution<Orthographic3<N>> for Standard where
Standard: Distribution<N>,
[src]
impl<N: Real> Distribution<Orthographic3<N>> for Standard where
Standard: Distribution<N>,
fn sample<R: Rng + ?Sized>(&self, r: &mut R) -> Orthographic3<N>
[src]
fn sample<R: Rng + ?Sized>(&self, r: &mut R) -> Orthographic3<N>
Generate a random value of T
, using rng
as the source of randomness.
ⓘImportant traits for DistIter<'a, D, R, T>fn sample_iter<R>(&'a self, rng: &'a mut R) -> DistIter<'a, Self, R, T> where
R: Rng,
[src]
fn sample_iter<R>(&'a self, rng: &'a mut R) -> DistIter<'a, Self, R, T> where
R: Rng,
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 Orthographic3<N>
impl<N> Send for Orthographic3<N>
impl<N> Sync for Orthographic3<N>
impl<N> Sync for Orthographic3<N>