Defines the rigid body transformations from one reference frame to another, including the rotation matrix and translation vector.
More...
#include <CommonTypes.h>
|
enum class | Axis { X
, Y
, Z
} |
|
|
double | rotation [3][3] = {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}} |
| 3*3 rotation matrix.
|
|
double | translation [3] = {0, 0, 0} |
| 3*1 translation vector in [x(mm), y(mm), z(mm)].
|
|
Defines the rigid body transformations from one reference frame to another, including the rotation matrix and translation vector.
Definition at line 91 of file CommonTypes.h.
◆ Axis
enum class mmind::eye::FrameTransformation::Axis |
|
strong |
◆ FrameTransformation() [1/2]
mmind::eye::FrameTransformation::FrameTransformation |
( |
double | rotateX, |
|
|
double | rotateY, |
|
|
double | rotateZ, |
|
|
double | translateX, |
|
|
double | translateY, |
|
|
double | translateZ ) |
|
inline |
◆ FrameTransformation() [2/2]
◆ isValid()
bool mmind::eye::FrameTransformation::isValid |
( |
| ) |
const |
|
inline |
Check if a custom reference frame has been set using Mech-Eye Viewer.
Definition at line 173 of file CommonTypes.h.
◆ operator=()
◆ rotate()
void mmind::eye::FrameTransformation::rotate |
( |
double | theta, |
|
|
Axis | rotationAxis ) |
|
inline |
Rotates the reference frame of the point cloud.
- Parameters
-
[in] | theta | The amount of rotation. |
[in] | rotationAxis | The axis around which the rotation is performed. X-, Y-, and Z-Axes can be input. |
Definition at line 128 of file CommonTypes.h.
◆ translate()
void mmind::eye::FrameTransformation::translate |
( |
double | x, |
|
|
double | y, |
|
|
double | z ) |
|
inline |
Translates the reference frame of the point cloud.
- Parameters
-
[in] | x | The amount of translation (in mm) along the X-axis. |
[in] | y | The amount of translation (in mm) along the Y-axis. |
[in] | z | The amount of translation (in mm) along the Z-axis. |
Definition at line 163 of file CommonTypes.h.
◆ rotation
double mmind::eye::FrameTransformation::rotation[3][3] = {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}} |
◆ translation
double mmind::eye::FrameTransformation::translation[3] = {0, 0, 0} |
3*1 translation vector in [x(mm), y(mm), z(mm)].
Definition at line 198 of file CommonTypes.h.
The documentation for this struct was generated from the following file: