#include <Rotation.h>
inet::Rotation::Rotation |
( |
| ) |
|
double rotationMatrix[3][3]
Definition: Rotation.h:32
inet::Rotation::Rotation |
( |
const EulerAngles & |
eulerAngle | ) |
|
25 double q0 =
cos(eulerAngle.alpha/2) *
cos(eulerAngle.beta/2) *
cos(eulerAngle.gamma/2) +
26 sin(eulerAngle.alpha/2) *
sin(eulerAngle.beta/2) *
sin(eulerAngle.gamma/2);
27 double q1 =
sin(eulerAngle.alpha/2) *
cos(eulerAngle.beta/2) *
cos(eulerAngle.gamma/2) -
28 cos(eulerAngle.alpha/2) *
sin(eulerAngle.beta/2) *
sin(eulerAngle.gamma/2);
29 double q2 =
cos(eulerAngle.alpha/2) *
sin(eulerAngle.beta/2) *
cos(eulerAngle.gamma/2) +
30 sin(eulerAngle.alpha/2) *
cos(eulerAngle.beta/2) *
sin(eulerAngle.gamma/2);
31 double q3 =
cos(eulerAngle.alpha/2) *
cos(eulerAngle.beta/2) *
sin(eulerAngle.gamma/2) -
32 sin(eulerAngle.alpha/2) *
sin(eulerAngle.beta/2) *
cos(eulerAngle.gamma/2);
Value cos(const value< Value, Unit > &angle)
Definition: Units.h:1201
void computeRotationMatrices(const double &q0, const double &q1, const double &q2, const double &q3)
Definition: Rotation.cc:36
Value sin(const value< Value, Unit > &angle)
Definition: Units.h:1195
void inet::Rotation::computeRotationMatrices |
( |
const double & |
q0, |
|
|
const double & |
q1, |
|
|
const double & |
q2, |
|
|
const double & |
q3 |
|
) |
| |
|
protected |
Referenced by Rotation().
double rotationMatrix[3][3]
Definition: Rotation.h:32
Coord inet::Rotation::matrixMultiplication |
( |
const double |
matrix[3][3], |
|
|
const Coord & |
vector |
|
) |
| const |
|
protected |
Referenced by rotateVectorClockwise().
74 vector.x * matrix[0][0] + vector.y * matrix[0][1] + vector.z * matrix[0][2],
75 vector.x * matrix[1][0] + vector.y * matrix[1][1] + vector.z * matrix[1][2],
76 vector.x * matrix[2][0] + vector.y * matrix[2][1] + vector.z * matrix[2][2]);
Coord inet::Rotation::matrixTransposeMultiplication |
( |
const double |
matrix[3][3], |
|
|
const Coord & |
vector |
|
) |
| const |
|
protected |
Referenced by rotateVectorCounterClockwise().
82 vector.x * matrix[0][0] + vector.y * matrix[1][0] + vector.z * matrix[2][0],
83 vector.x * matrix[0][1] + vector.y * matrix[1][1] + vector.z * matrix[2][1],
84 vector.x * matrix[0][2] + vector.y * matrix[1][2] + vector.z * matrix[2][2]);
Coord inet::Rotation::rotateVectorClockwise |
( |
const Coord & |
vector | ) |
const |
Coord inet::Rotation::rotateVectorCounterClockwise |
( |
const Coord & |
vector | ) |
const |
double inet::Rotation::rotationMatrix[3][3] |
|
protected |
The documentation for this class was generated from the following files: