pub enum ObjectMatrix {
World,
WorldView,
WorldViewProjection,
}Expand description
A transform built from the drawn object’s object-to-world matrix.
Variants§
World
Object space to world space.
WorldView
Object space to view space.
WorldViewProjection
Object space to clip space.
Implementations§
Source§impl ObjectMatrix
impl ObjectMatrix
Sourcepub fn spatial_kind(self) -> SpatialKind
pub fn spatial_kind(self) -> SpatialKind
How the object’s transform moves into a program frame: the object’s space is converted as the world’s is.
Trait Implementations§
Source§impl Clone for ObjectMatrix
impl Clone for ObjectMatrix
impl Copy for ObjectMatrix
Source§impl Debug for ObjectMatrix
impl Debug for ObjectMatrix
impl Eq for ObjectMatrix
Source§impl Hash for ObjectMatrix
impl Hash for ObjectMatrix
Source§impl PartialEq for ObjectMatrix
impl PartialEq for ObjectMatrix
Source§impl Serialize for ObjectMatrix
impl Serialize for ObjectMatrix
impl StructuralPartialEq for ObjectMatrix
Auto Trait Implementations§
impl Forget for ObjectMatrix
impl Freeze for ObjectMatrix
impl RefUnwindSafe for ObjectMatrix
impl Send for ObjectMatrix
impl Sync for ObjectMatrix
impl Unpin for ObjectMatrix
impl UnsafeUnpin for ObjectMatrix
impl UnwindSafe for ObjectMatrix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.