Frame.from_axis_angle_vector
- classmethod Frame.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 (list of float) – Three numbers that represent the axis of rotation and angle of rotation by its magnitude.
point (list of float, optional) – The point of the frame. Defaults to [0, 0, 0].
- Returns
compas.geometry.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