aa_to_euler Subroutine

public subroutine aa_to_euler(axis, angle, seq, world, euler)

Coverts an axis-angle representation to Euler angles.

Arguments

Type IntentOptional Attributes Name
real(kind=rp), intent(in), dimension(3) :: axis

Unit vector along the axis.

real(kind=rp), intent(in) :: angle

Angle in radian. 0 <= angle < pi.

character(len=3), intent(in) :: seq

'XYZ'|'XZY' | 'YXZ' | 'YZX' | 'ZXY' | 'ZYX'. Euler angle sequence.

logical, intent(in) :: world

Whether the Euler angles are with respect to the world frame or not.

real(kind=rp), intent(out), dimension(3) :: euler

Euler angles.