Enum opengex::structure::Rotation
[−]
[src]
pub enum Rotation { X(f32), Y(f32), Z(f32), Axis(f32, f32, f32, f32), Quaternion(f32, f32, f32, f32), }
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
X(f32)
The rotation occurs about the X axis.
Y(f32)
The rotation occurs about the Y axis.
Z(f32)
The rotation occurs about the Z axis.
Axis(f32, f32, f32, f32)
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.
Quaternion(f32, f32, f32, f32)
The rotation is given by a quaternion. Please refer to the official OpenGEX documentation for more information.