Struct bevy_rapier2d::prelude::nalgebra::geometry::Perspective3 [−][src]
pub struct Perspective3<T> where
T: 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.
pub fn from_matrix_unchecked(
matrix: Matrix<T, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<T, 4_usize, 4_usize>>
) -> Perspective3<T>
[src]
pub fn from_matrix_unchecked(
matrix: Matrix<T, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<T, 4_usize, 4_usize>>
) -> Perspective3<T>
[src]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.
pub fn to_homogeneous(
&self
) -> Matrix<T, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<T, 4_usize, 4_usize>>
[src]
pub fn to_homogeneous(
&self
) -> Matrix<T, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<T, 4_usize, 4_usize>>
[src]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
.
pub fn into_inner(
self
) -> Matrix<T, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<T, 4_usize, 4_usize>>
[src]
pub fn into_inner(
self
) -> Matrix<T, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<T, 4_usize, 4_usize>>
[src]Retrieves the underlying homogeneous matrix.
pub fn unwrap(
self
) -> Matrix<T, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<T, 4_usize, 4_usize>>
[src]👎 Deprecated: use .into_inner()
instead
pub fn unwrap(
self
) -> Matrix<T, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<T, 4_usize, 4_usize>>
[src]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> From<Perspective3<T>> for Matrix<T, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<T, 4_usize, 4_usize>> where
T: RealField,
[src]
impl<T> From<Perspective3<T>> for Matrix<T, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<T, 4_usize, 4_usize>> where
T: RealField,
[src]pub fn from(
pers: Perspective3<T>
) -> Matrix<T, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<T, 4_usize, 4_usize>>
[src]
pub fn from(
pers: Perspective3<T>
) -> Matrix<T, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<T, 4_usize, 4_usize>>
[src]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
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
pub fn vzip(self) -> V