Convert angle, axis pair to Euler angles
Parameters : | theta : scalar
vector : 3 element sequence
is_normalized : bool, optional
|
---|---|
Returns : | z : scalar y : scalar x : scalar
|
Notes
It’s possible to reduce the amount of calculation a little, by combining parts of the angle_axis2mat and mat2euler functions, but the reduction in computation is small, and the code repetition is large.
Examples
>>> z, y, x = angle_axis2euler(0, [1, 0, 0])
>>> np.allclose((z, y, x), 0)
True