quaternion.toeuler

Edit

Returns the euler angles of the quaternion, in YXZ order.

pitch, yaw, roll = quaternion.toeuler(q)

Arguments

NameTypeDescription
qquaternion The quaternion.

Returns

NameTypeDescription
pitchnumber The pitch (x axis rotation), in radians.
yawnumber The yaw (y axis rotation), in radians.
rollnumber The roll (z axis rotation), in radians.

See also