quat_to_euler Subroutine

public subroutine quat_to_euler(q, seq, world, euler)

Converts a unit quaternion to an Euler angle sequence.

Arguments

Type IntentOptional Attributes Name
real(kind=rp), intent(in), dimension(4) :: q

Unit quaternion.

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.