euler_to_dcm Subroutine

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

Convert Euler angles to a direction cosine matrix.

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(3,3) :: dcm

Direction cosine matrix.