AxesFromRot
Function. Converts a rotation (quaternion) to its coordinate system axes in 3D space.
Given a rotation, this block outputs the X, Y, and Z axis vectors of the rotated coordinate system. This is the inverse operation of RotFromAxes.
Useful for extracting directional vectors from a rotation, for example to get the forward direction of a rotated particle.
Input:
- Rotation (input): The rotation to decompose.
Outputs:
- X axis (vec3): The X axis of the rotated coordinate system.
- Y axis (vec3): The Y axis of the rotated coordinate system.
- Z axis (vec3): The Z axis of the rotated coordinate system.