Skip to content

quaterniontoeuler

Since17.0

vector  quaterniontoeuler(vector4 orient, int order)

Creates a vector representing euler angles from a vector4 representing a quaternion.

The angles are in radians. Use the degrees() function to convert radians into degrees.

For more information, see Data types and Dot operator.

order

One of the rotation order constants listed below, which can be imported from $HFS/houdini/vex/include/math.h.

Constant nameRotation Order
XFORM_XYZRotate order X, Y, Z
XFORM_XZYRotate order X, Z, Y
XFORM_YXZRotate order Y, X, Z
XFORM_YZXRotate order Y, Z, X
XFORM_ZXYRotate order Z, X, Y
XFORM_ZYXRotate order Z, Y, X