#[repr(C, align(16))]pub struct F32ModelMatrix(pub F32Vector4, pub F32Vector4, pub F32Vector4, pub F32Vector4);Expand description
Row-major 4x4 float model matrix.
Tuple Fields§
§0: F32Vector4§1: F32Vector4§2: F32Vector4§3: F32Vector4Implementations§
Source§impl F32ModelMatrix
impl F32ModelMatrix
Sourcepub fn new(
r0: F32Vector4,
r1: F32Vector4,
r2: F32Vector4,
r3: F32Vector4,
) -> Self
pub fn new( r0: F32Vector4, r1: F32Vector4, r2: F32Vector4, r3: F32Vector4, ) -> Self
Construct from an array of row vectors.
Sourcepub fn translation<T: From<Vec3A>>(&self) -> T
pub fn translation<T: From<Vec3A>>(&self) -> T
Extract the translation vector.
Trait Implementations§
Source§impl Clone for F32ModelMatrix
impl Clone for F32ModelMatrix
Source§fn clone(&self) -> F32ModelMatrix
fn clone(&self) -> F32ModelMatrix
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for F32ModelMatrix
impl Debug for F32ModelMatrix
Source§impl From<F32Matrix4x4> for F32ModelMatrix
impl From<F32Matrix4x4> for F32ModelMatrix
Source§fn from(F32Matrix4x4: F32Matrix4x4) -> Self
fn from(F32Matrix4x4: F32Matrix4x4) -> Self
Converts to this type from the input type.
Source§impl From<F32ModelMatrix> for F32Matrix4x4
impl From<F32ModelMatrix> for F32Matrix4x4
Source§fn from(F32ModelMatrix: F32ModelMatrix) -> Self
fn from(F32ModelMatrix: F32ModelMatrix) -> Self
Converts to this type from the input type.
Source§impl From<F32ModelMatrix> for F32PackedModelMatrix
impl From<F32ModelMatrix> for F32PackedModelMatrix
Source§fn from(F32ModelMatrix: F32ModelMatrix) -> Self
fn from(F32ModelMatrix: F32ModelMatrix) -> Self
Converts to this type from the input type.
Source§impl From<F32ModelMatrix> for Mat4
impl From<F32ModelMatrix> for Mat4
Source§fn from(F32ModelMatrix: F32ModelMatrix) -> Self
fn from(F32ModelMatrix: F32ModelMatrix) -> Self
Converts to this type from the input type.
Source§impl From<F32PackedModelMatrix> for F32ModelMatrix
impl From<F32PackedModelMatrix> for F32ModelMatrix
Source§fn from(F32PackedModelMatrix: F32PackedModelMatrix) -> Self
fn from(F32PackedModelMatrix: F32PackedModelMatrix) -> Self
Converts to this type from the input type.
Source§impl From<Mat4> for F32ModelMatrix
impl From<Mat4> for F32ModelMatrix
Source§impl PartialEq for F32ModelMatrix
impl PartialEq for F32ModelMatrix
impl Copy for F32ModelMatrix
impl StructuralPartialEq for F32ModelMatrix
Auto Trait Implementations§
impl Freeze for F32ModelMatrix
impl RefUnwindSafe for F32ModelMatrix
impl Send for F32ModelMatrix
impl Sync for F32ModelMatrix
impl Unpin for F32ModelMatrix
impl UnwindSafe for F32ModelMatrix
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