Returns the rotation matrix corresponding to a unit quaternion.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in), | dimension(4) | :: | q |
Unit quaternion. |
|
| real(kind=rp), | intent(out), | dimension(3,3) | :: | rotmat |
Rotation matrix. |