euler_to_aa Subroutine

public subroutine euler_to_aa(euler, seq, world, axis, angle)

Convert Euler angles to an axis-angle representation.

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) :: axis

Unit vector along the axis of rotation.

real(kind=rp), intent(out) :: angle

Angle of rotation in radian.