pymerlin.utils.rotmat

pymerlin.utils.rotmat(rot_angles)[source]

Calculate rotation matrix

https://en.wikipedia.org/wiki/Rotation_matrix#In_three_dimensions

Parameters

rot_angles (array) – Rotation angles (roll, pitch, yaw / x,y,z)

Returns

3x3 rotation matrix

Return type

array