#[repr(C, align(16))]pub struct F32PackedModelMatrix(pub F32Vector4, pub F32Vector4, pub F32Vector4);Expand description
Row-major 4x4 float model matrix packed as a column major 4x3.
The 4x4 is packed by discarding the 4th component of each row.
Tuple Fields§
§0: F32Vector4§1: F32Vector4§2: F32Vector4Implementations§
Source§impl F32PackedModelMatrix
impl F32PackedModelMatrix
Sourcepub fn new(
r0: F32Vector4,
r1: F32Vector4,
r2: F32Vector4,
r3: F32Vector4,
) -> Self
pub fn new( r0: F32Vector4, r1: F32Vector4, r2: F32Vector4, r3: F32Vector4, ) -> Self
Pack 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.
Sourcepub fn x_axis(&self) -> F32Vector4
pub fn x_axis(&self) -> F32Vector4
Extract the x axis.
Sourcepub fn y_axis(&self) -> F32Vector4
pub fn y_axis(&self) -> F32Vector4
Extract the y axis.
Sourcepub fn z_axis(&self) -> F32Vector4
pub fn z_axis(&self) -> F32Vector4
Extract the z axis.
Sourcepub fn w_axis(&self) -> F32Vector4
pub fn w_axis(&self) -> F32Vector4
Extract the w axis.
Trait Implementations§
Source§impl Clone for F32PackedModelMatrix
impl Clone for F32PackedModelMatrix
Source§fn clone(&self) -> F32PackedModelMatrix
fn clone(&self) -> F32PackedModelMatrix
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 F32PackedModelMatrix
impl Debug for F32PackedModelMatrix
Source§impl From<F32Matrix4x4> for F32PackedModelMatrix
impl From<F32Matrix4x4> for F32PackedModelMatrix
Source§fn from(m: F32Matrix4x4) -> Self
fn from(m: F32Matrix4x4) -> 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<F32PackedModelMatrix> for F32Matrix4x4
impl From<F32PackedModelMatrix> for F32Matrix4x4
Source§fn from(m: F32PackedModelMatrix) -> Self
fn from(m: F32PackedModelMatrix) -> 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<F32PackedModelMatrix> for Mat4
impl From<F32PackedModelMatrix> for Mat4
Source§fn from(F32PackedModelMatrix: F32PackedModelMatrix) -> Self
fn from(F32PackedModelMatrix: F32PackedModelMatrix) -> Self
Converts to this type from the input type.
Source§impl From<Mat4> for F32PackedModelMatrix
impl From<Mat4> for F32PackedModelMatrix
Source§impl PartialEq for F32PackedModelMatrix
impl PartialEq for F32PackedModelMatrix
impl Copy for F32PackedModelMatrix
impl StructuralPartialEq for F32PackedModelMatrix
Auto Trait Implementations§
impl Freeze for F32PackedModelMatrix
impl RefUnwindSafe for F32PackedModelMatrix
impl Send for F32PackedModelMatrix
impl Sync for F32PackedModelMatrix
impl Unpin for F32PackedModelMatrix
impl UnwindSafe for F32PackedModelMatrix
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