RotationAxis2Euler

Convert rotation from axis-angle representation to Euler angles.

Parameters

axis

The axis of rotation as a 1D array of 3 elements (x, y, z).

angle

The angle of rotation in radians.

res

The resulting Euler angles as a 1D array of 3 elements (roll, pitch, yaw).