Module for working with quaternions
Add documentation
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | r | |||
| real(kind=wp), | intent(in), | dimension(3) | :: | v |
Return the magnitude of the quaternion
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(quat_t), | intent(in) | :: | q | The quaternion of interest |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | r | |||
| type(quat_t), | intent(in) | :: | q |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(quat_t), | intent(in) | :: | q | |||
| real(kind=wp), | intent(in) | :: | r |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | dimension(3) | :: | v | ||
| type(quat_t), | intent(in) | :: | q |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(quat_t), | intent(in) | :: | q | |||
| real(kind=wp), | intent(in), | dimension(3) | :: | v |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(quat_t), | intent(in) | :: | u | |||
| type(quat_t), | intent(in) | :: | v |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | r | |||
| type(quat_t), | intent(in) | :: | q |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(quat_t), | intent(in) | :: | q | |||
| real(kind=wp), | intent(in) | :: | r |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | dimension(3) | :: | v | ||
| type(quat_t), | intent(in) | :: | q |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(quat_t), | intent(in) | :: | q | |||
| real(kind=wp), | intent(in), | dimension(3) | :: | v |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(quat_t), | intent(in) | :: | u | |||
| type(quat_t), | intent(in) | :: | v |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | u | |||
| type(quat_t), | intent(in) | :: | v |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(quat_t), | intent(in) | :: | u | |||
| real(kind=wp), | intent(in) | :: | v |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | dimension(3) | :: | u | ||
| type(quat_t), | intent(in) | :: | v |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(quat_t), | intent(in) | :: | u | |||
| real(kind=wp), | intent(in), | dimension(3) | :: | v |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(quat_t), | intent(in) | :: | u | |||
| type(quat_t), | intent(in) | :: | v |
Hamilton's quaternion extension to complex numbers
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=wp), | public | :: | s | = | 0.0_wp | Scalar part |
|
| real(kind=wp), | public, | dimension(3) | :: | v | = | 0.0_wp | Vector part |
| private function newQuat(r, v) |
| procedure, public :: getRotationMatrix |
Return the scalar part of the quaternion
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(quat_t), | intent(in) | :: | q | The quaternion of interest |