surfa.transform.orientation.rotation_matrix_to_orientation#

surfa.transform.orientation.rotation_matrix_to_orientation(matrix)#

Examines a (3, 3) direction cosine matrix and determines the corresponding orientation, indicating the primary direction of each axis in the 3D matrix. The characters can be L, R, A, P, I, S. Case is not important, but uppercase is generally used.

Parameters

matrix ((3, 3) float) – Direction cosine matrix.

Returns

str

Return type

Computed orientation string.