surfa.transform.affine.rotation_matrix_to_angles#

surfa.transform.affine.rotation_matrix_to_angles(matrix, degrees=True)#

Compute rotation angle(s) from an (N, N) rotation matrix.

Parameters
  • matrix ((N, N) float) – N-D rotation matrix.

  • degrees (bool) – Return rotation angles in degrees instead of radians.

Returns

Rotation angle(s).

Return type

scalar or (3) float