skued.is_rotation_matrix

skued.is_rotation_matrix(matrix)

Checks whether a matrix is orthogonal with unit determinant (1 or -1), properties of rotation matrices.

Parameters:

matrix (ndarray, shape {(3,3), (4,4)}) – Rotation matrix candidate. If (4,4) matrix is provided, only the top-left block matrix of (3,) is checked

Returns:

result – If True, input could be a rotation matrix.

Return type:

bool