warp.quat_from_axis_angle#
- warp.quat_from_axis_angle( ) Quaternion[Float]#
Return the quaternion for a rotation of
angleradians aboutaxis.Positive angles follow the right-hand rule: a rotation of
pi / 2about thezaxis maps thexaxis onto theyaxis.- Parameters:
axis – Rotation axis, with unit length.
angle – Rotation angle in radians.
- Returns:
The quaternion
(axis * sin(angle / 2), cos(angle / 2))in(x, y, z, w)order.