Origin.from_axis_angle_vector

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

Construct a frame from an axis-angle vector representing the rotation.

Parameters
  • axis_angle_vector ([float, float, float]) – Three numbers that represent the axis of rotation and angle of rotation by its magnitude.

  • point ([float, float, float] | Point, optional) – The point of the frame.

Returns

Frame – The constructed frame.

Examples

>>> aav1 = [-0.043, -0.254, 0.617]
>>> f = Frame.from_axis_angle_vector(aav1, point=[0, 0, 0])
>>> aav2 = f.axis_angle_vector
>>> allclose(aav1, aav2)
True