type, public :: quat_t
Hamilton's quaternion extension to complex numbers
Components
| 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 |
Constructor
-
private function newQuat(r, v) result(self)
Arguments
| Type |
Intent | Optional |
Attributes | | Name | |
| real(kind=wp), |
intent(in) |
|
| :: |
r | |
| real(kind=wp), |
intent(in), |
|
dimension(3) | :: |
v | |
Return Value type(quat_t)
Type-Bound Procedures
procedure, public :: getRotationMatrix
-
private function getRotationMatrix(self) result(o)
Arguments
| Type |
Intent | Optional |
Attributes | | Name | |
| class(quat_t), |
intent(in) |
|
| :: |
self | |
Return Value real(kind=wp),
dimension(3,3)