axis_and_angle_from_matrix

compas.geometry.axis_and_angle_from_matrix(M)[source]

Returns the axis and the angle of the rotation matrix M.

Parameters

M (list[list[float]]) – The 4-by-4 transformation matrix.

Returns

  • [float, float, float] – The rotation axis.

  • float – The rotation angle in radians.