pyins.transform.mat_to_rph

pyins.transform.mat_to_rph(mat)

Convert a rotation matrix to roll, pitch and heading angles.

Parameters:
matarray_like, shape (3, 3) or (n, 3, 3)

Rotation matrices.

Returns:
ndarray, with shape (3,) or (n, 3)

Roll, pitch and heading angles.