Enum opengex::structure::Rotation [] [src]

pub enum Rotation {
    X(f32),
    Y(f32),
    Z(f32),
    Axis(f32f32f32f32),
    Quaternion(f32f32f32f32),
}

The Rotation structure represents a rotation along one of several axes.

There are different variants of this type of tranformation, one for each "kind".

When contained inside a node structure, a Rotation structure can be the target of a track stored in an Animation structure.

Variants

The rotation occurs about the X axis.

The rotation occurs about the Y axis.

The rotation occurs about the Z axis.

The rotation occurs about an arbitrary axis. The first entry of this structure is the angle of rotation. The remaining three entries are respectively the X, Y and Z components of the axis of rotation.

The rotation is given by a quaternion. Please refer to the official OpenGEX documentation for more information.