Enum gltf::scene::Transform[][src]

pub enum Transform {
    Matrix {
        matrix: [[f32; 4]; 4],
    },
    Decomposed {
        translation: [f32; 3],
        rotation: [f32; 4],
        scale: [f32; 3],
    },
}

The transform for a Node.

Variants

4x4 transformation matrix in column-major order.

Fields of Matrix

4x4 matrix.

Decomposed TRS properties.

Fields of Decomposed

[x, y, z] vector.

[x, y, z, w] quaternion, where w is the scalar.

[x, y, z] vector.

Methods

impl Transform
[src]

Returns the matrix representation of this transform.

If the transform is Decomposed, then the matrix is generated with the equation matrix = translation * rotation * scale.

Returns a decomposed representation of this transform.

If the transform is Matrix, then the decomposition is extracted from the matrix.

Trait Implementations

impl Clone for Transform
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Transform
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Transform

impl Sync for Transform