Skip to main content

Affine3Ext

Trait Affine3Ext 

Source
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§

Source

fn from_transpose(transposed: [Vec4; 3]) -> Self

Generates an Affine3 from a transposed 3x4 matrix.

This is the inverse of Self::to_transpose.

Source

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

Source

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".

Implementors§