setQuaternionFromProperEuler

Sets the given quaternion q from the Intrinsic Proper Euler Angles defined by a, b, c and order.

Rotations are applied to the axes in the order specified by order: rotation by angle a is applied first, then by angle b, then by angle c.

Parameters

q

The quaternion to set.

a

The rotation applied to the first axis, in radians.

b

The rotation applied to the second axis, in radians.

c

The rotation applied to the third axis, in radians.

order

A ProperEulerOrder specifying the axes order.