Struct nalgebra::geometry::Perspective3 [−][src]
#[repr(C)]pub struct Perspective3<T> { /* fields omitted */ }
Expand description
A 3D perspective projection stored as a homogeneous 4x4 matrix.
Implementations
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.
Creates a new perspective matrix from the aspect ratio, y field of view, and near/far planes.
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
fn deserialize<Des>(deserializer: Des) -> Result<Self, Des::Error> where
Des: Deserializer<'a>,
fn deserialize<Des>(deserializer: Des) -> Result<Self, Des::Error> where
Des: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. 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.