dcm_to_euler Subroutine

public subroutine dcm_to_euler(dcm, seq, world, euler)

Converts a direction cosine matrix to Euler angles.

Arguments

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

Direction cosine matrix.

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