vector4 eulertoquaternion(vector rotations, int order)
Creates a vector4 representing a quaternion from a vector representing Euler rotations in X, Y, and Z.
The angles are in radians. Use the radians()
function to convert degrees into radians.
Specify the rotation order with the order integer. Use the constants defined in $HH/vex/include/math.h
(for example, XFORM_XYZ
).
See also | |
quaternion |