pub trait Affine3Ext {
// Required methods
fn from_transpose(transposed: [Vec4; 3]) -> Self;
fn to_transpose(self) -> [Vec4; 3];
fn inverse_transpose_3x3(self) -> ([Vec4; 2], f32);
}Expand description
Extension trait for Affine3
Required Methods§
Sourcefn from_transpose(transposed: [Vec4; 3]) -> Self
fn from_transpose(transposed: [Vec4; 3]) -> Self
Generates an Affine3 from a transposed 3x4 matrix.
This is the inverse of Self::to_transpose.
Sourcefn to_transpose(self) -> [Vec4; 3]
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
Sourcefn inverse_transpose_3x3(self) -> ([Vec4; 2], f32)
fn inverse_transpose_3x3(self) -> ([Vec4; 2], f32)
Calculates the inverse transpose of the 3x3 matrix and formats it for packing into GPU buffers
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.