Quaternion for rotation of angle theta around vector
Parameters: | theta : scalar
vector : 3 element sequence
is_normalized : bool, optional
|
---|---|
Returns: | quat : 4 element sequence of symbols
|
Notes
Formula from http://mathworld.wolfram.com/EulerParameters.html
Examples
>>> q = angle_axis2quat(np.pi, [1, 0, 0])
>>> np.allclose(q, [0, 1, 0, 0])
True