There was an error while loading. Please reload this page.
Extracts the rotation axis and angle from a quaternion.
This function is located in the pymath module. See pymath for the quaternion representation.
pymath
axis, angle = pymath.rotation_from_quat(q)
q
{x, y, z, w}
axis
angle
pymath.quat_from_rotation
local axis, angle = pymath.rotation_from_quat({0, 0, 0.70710678, 0.70710678}) -- axis == {0, 0, 1} -- angle == 90
Minimum PYTHA Version: V27
pymath, pymath.quat_from_rotation, pymath.matrix_from_quat