Rotation.from_axis_angle_vector

classmethod Rotation.from_axis_angle_vector(axis_angle_vector, point=[0, 0, 0])

Calculates a Rotation from an axis-angle vector.

Parameters
  • axis_angle_vector (list of float) – Three numbers that represent the axis of rotation and angle of rotation through the vector’s magnitude.

  • point (list of float, optional) – A point to perform a rotation around an origin other than [0, 0, 0].

Examples

>>> from compas.geometry import allclose
>>> aav1 = [-0.043, -0.254, 0.617]
>>> R = Rotation.from_axis_angle_vector(aav1)
>>> aav2 = R.axis_angle_vector
>>> allclose(aav1, aav2)
True