quat_rotmat Subroutine

public subroutine quat_rotmat(q, rotmat)

Returns the rotation matrix corresponding to a unit quaternion.

Arguments

Type IntentOptional Attributes Name
real(kind=rp), intent(in), dimension(4) :: q

Unit quaternion.

real(kind=rp), intent(out), dimension(3,3) :: rotmat

Rotation matrix.