Return Euler angles corresponding to quaternion q
Parameters: | q : 4 element sequence
|
---|---|
Returns: | z : scalar
y : scalar
x : scalar
|
Notes
It’s possible to reduce the amount of calculation a little, by combining parts of the quat2mat and mat2euler functions, but the reduction in computation is small, and the code repetition is large.