Constructs a rotation matrix when the orientation of the coordinate frame of interest is known relative to the parent coordinate frame.
The matrix is of the following form.
This routine does not check for orthogonallity or unit vector length; therefore, to ensure correct results it is the callers responsibility to ensure each vector is of unit length and that the unit vectors are properly orthogonal.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | i(3) |
The rotated coordinate frame x-axis unit vector. |
||
| real(kind=real64), | intent(in) | :: | j(3) |
The rotated coordinate frame y-axis unit vector. |
||
| real(kind=real64), | intent(in) | :: | k(3) |
The rotated coordinate frame z-axis unit vector. |
||
| real(kind=real64), | intent(in) | :: | Ip(3) |
The parent coordinate frame x-axis unit vector. |
||
| real(kind=real64), | intent(in) | :: | Jp(3) |
The parent coordinate frame y-axis unit vector. |
||
| real(kind=real64), | intent(in) | :: | Kp(3) |
The parent coordinate frame z-axis unit vector. |
The resulting 3-by-3 matrix.
Constructs a rotation matrix when the orientation of the coordinate frame of interest is known relative to the parent coordinate frame.
The matrix is of the following form.
The parent coordinate frame is assumed to be as follows.
This routine does not check for orthogonallity or unit vector length; therefore, to ensure correct results it is the callers responsibility to ensure each vector is of unit length and that the unit vectors are properly orthogonal.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | i(3) |
The rotated coordinate frame x-axis unit vector. |
||
| real(kind=real64), | intent(in) | :: | j(3) |
The rotated coordinate frame y-axis unit vector. |
||
| real(kind=real64), | intent(in) | :: | k(3) |
The rotated coordinate frame z-axis unit vector. |
The resulting 3-by-3 matrix.
Computes the acceleration transformation matrix relating the position of a point expressed in a rotating and translating body relative to its parent frame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | alpha(3) |
The angular acceleration vector. |
||
| real(kind=real64), | intent(in) | :: | omega(3) |
The angular velocity vector. |
||
| real(kind=real64), | intent(in) | :: | a(3) |
The translational acceleration vector describing the acceleration of the body in its parent coordinate frame. |
||
| real(kind=real64), | intent(in) | :: | x(3) |
The position vector of the body in its parent coordinate frame. |
The 4-by-4 transformation matrix.
Constructs the rotation matrix describing a rotation about an x-axis such that .
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | angle |
The rotation angle, in radians. |
The resulting 3-by-3 matrix.
Constructs the rotation matrix describing a rotation about a y-axis such that .
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | angle |
The rotation angle, in radians. |
The resulting 3-by-3 matrix.
Constructs the rotation matrix describing a rotation about a y-axis such that .
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | angle |
The rotation angle, in radians. |
The resulting 3-by-3 matrix.
Computes the velocity transformation matrix relating the position of a point expressed in a rotating and translating body relative to its parent frame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | omega(3) |
The angular velocity vector. |
||
| real(kind=real64), | intent(in) | :: | v(3) |
The translation velocity vector describing the velocity of the body in its parent coordinate frame. |
||
| real(kind=real64), | intent(in) | :: | x(3) |
The position vector of the body in its parent coordinate frame. |
The 4-by-4 transformation matrix.