pub struct Affine3 {
pub matrix3: Mat3,
pub translation: Vec3,
}
Expand description
Reduced-size version of glam::Affine3A
for use when storage has
significant performance impact. Convert to glam::Affine3A
to do
non-trivial calculations.
Fields§
§matrix3: Mat3
Scaling, rotation, shears, and other non-translation affine transforms
translation: Vec3
Translation
Implementations§
source§impl Affine3
impl Affine3
sourcepub fn to_transpose(&self) -> [Vec4; 3]
pub fn to_transpose(&self) -> [Vec4; 3]
Calculates the transpose of the affine 4x3 matrix to a 3x4 and formats it for packing into GPU buffers
sourcepub fn inverse_transpose_3x3(&self) -> ([Vec4; 2], f32)
pub fn inverse_transpose_3x3(&self) -> ([Vec4; 2], f32)
Calculates the inverse transpose of the 3x3 matrix and formats it for packing into GPU buffers
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Affine3
impl Send for Affine3
impl Sync for Affine3
impl Unpin for Affine3
impl UnwindSafe for Affine3
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