Struct nalgebra::geometry::Perspective3
source · [−]pub struct Perspective3<T: Scalar> { /* private fields */ }
Expand description
A 3D perspective projection stored as a homogeneous 4x4 matrix.
Implementations
Creates a new perspective matrix from the aspect ratio, y field of view, and near/far planes.
Wraps the given matrix to interpret it as a 3D perspective matrix.
It is not checked whether or not the given matrix actually represents a perspective projection.
Retrieves the inverse of the underlying homogeneous matrix.
Computes the corresponding homogeneous matrix.
A reference to the underlying homogeneous transformation matrix.
A reference to this transformation seen as a Projective3
.
This transformation seen as a Projective3
.
Retrieves the underlying homogeneous matrix.
👎 Deprecated: use .into_inner()
instead
use .into_inner()
instead
Retrieves the underlying homogeneous matrix. Deprecated: Use Perspective3::into_inner instead.
Projects a point. Faster than matrix multiplication.
Un-projects a point. Faster than multiplication by the matrix inverse.
Projects a vector. Faster than matrix multiplication.
Updates this perspective matrix with a new width / height
aspect ratio of the view
frustum.
Updates this perspective with a new y field of view of the view frustum.
Updates this perspective matrix with a new near plane offset of the view frustum.
Updates this perspective matrix with a new far plane offset of the view frustum.
Updates this perspective matrix with new near and far plane offsets of the view frustum.
Trait Implementations
impl<T: RealField> Distribution<Perspective3<T>> for Standard where
Standard: Distribution<T>,
impl<T: RealField> Distribution<Perspective3<T>> for Standard where
Standard: Distribution<T>,
Generate an arbitrary random variate for testing purposes.
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for Perspective3<T> where
T: RefUnwindSafe,
impl<T> Send for Perspective3<T> where
T: Send,
impl<T> Sync for Perspective3<T> where
T: Sync,
impl<T> Unpin for Perspective3<T> where
T: Unpin,
impl<T> UnwindSafe for Perspective3<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
Checks if self
is actually part of its subset T
(and can be converted to it).
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
The inclusion map: converts self
to the equivalent element of its superset.