euler_to_quat Subroutine

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

Convert Euler angles to a unit quaternion.

Arguments

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

Euler angles.

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(4) :: q

Unit quaternion.