Enum gltf::scene::Transform [−][src]
pub enum Transform {
Matrix {
matrix: [[f32; 4]; 4],
},
Decomposed {
translation: [f32; 3],
rotation: [f32; 4],
scale: [f32; 3],
},
}
Expand description
The transform for a Node
.
Variants
Matrix
4x4 transformation matrix in column-major order.
Decomposed
Fields
Decomposed TRS properties.
Implementations
Returns the matrix representation of this transform.
If the transform is Decomposed
, then the matrix is generated with the
equation matrix = translation * rotation * scale
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Transform
impl UnwindSafe for Transform
Blanket Implementations
Mutably borrows from an owned value. Read more