|
inlineconstexpr |
Callable object computing euler angles from a quaternion.
This function build euler angles from a quaternion. Template parameters I, J, K of type int are used to choose the euler order.
for instance I = 3, J = 2, K = 3 choose the ZYZ sequence. the values of I, J, and K must be in {1, 2, 3} and satisfy I != J && J != K
.
Parameters
q
the rotation quaternion (not necesseraly normalized)a1
, a2
, a3
: the axis parameters to be chosen between X_, Y_, Z_ (two consecutive axes cannot be the same)Template parameters
Return value