Struct nalgebra::geometry::Perspective3 [−][src]
pub struct Perspective3<N: Scalar> { /* fields omitted */ }
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.
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
Performs the conversion.
Auto Trait Implementations
impl<N> RefUnwindSafe for Perspective3<N> where
N: RefUnwindSafe,
impl<N> Send for Perspective3<N> where
N: Send,
impl<N> Sync for Perspective3<N> where
N: Sync,
impl<N> Unpin for Perspective3<N> where
N: Unpin,
impl<N> UnwindSafe for Perspective3<N> where
N: 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.