euler_rotmat Subroutine

public subroutine euler_rotmat(euler, seq, world, rotmat)

Returns the rotation matrix for a set of Euler angles.

Arguments

Type IntentOptional Attributes Name
real(kind=rp), intent(in), dimension(3) :: euler
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) :: rotmat

Rotation matrix.