#[repr(C)]pub struct Matrix4x3 {
pub x: Vec3A,
pub y: Vec3A,
pub z: Vec3A,
pub w: Vec3A,
}
Expand description
Fields§
§x: Vec3A
§y: Vec3A
§z: Vec3A
§w: Vec3A
Implementations§
Source§impl Matrix4x3
impl Matrix4x3
Sourcepub fn from_affine3a(affine: Affine3A) -> Self
pub fn from_affine3a(affine: Affine3A) -> Self
Convert from glam’s Affine3A
Sourcepub fn from_mat3(mat3: Mat3) -> Self
pub fn from_mat3(mat3: Mat3) -> Self
Creates an affine transform from a 3x3 matrix (expressing scale, shear and rotation)
Sourcepub fn from_mat3_translation(mat3: Mat3, translation: Vec3) -> Self
pub fn from_mat3_translation(mat3: Mat3, translation: Vec3) -> Self
Creates an affine transform from a 3x3 matrix (expressing scale, shear and rotation) and a translation vector.
Equivalent to Affine3A::from_translation(translation) * Affine3A::from_mat3(mat3)
Sourcepub fn from_mat4(m: Mat4) -> Self
pub fn from_mat4(m: Mat4) -> Self
The given Mat4
must be an affine transform,
i.e. contain no perspective transform.
Sourcepub fn to_affine3a(self) -> Affine3A
pub fn to_affine3a(self) -> Affine3A
Convert to glam’s Affine3A
Sourcepub fn to_mat3a(self) -> Mat3A
pub fn to_mat3a(self) -> Mat3A
Creates a 3x3 matrix representing the rotation and scale, cutting off the translation
Trait Implementations§
impl Copy for Matrix4x3
impl StructuralPartialEq for Matrix4x3
Auto Trait Implementations§
impl Freeze for Matrix4x3
impl RefUnwindSafe for Matrix4x3
impl Send for Matrix4x3
impl Sync for Matrix4x3
impl Unpin for Matrix4x3
impl UnwindSafe for Matrix4x3
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