Represents a 3D rigid body transform: translation (tx, ty, tz) and quaternion rotation (qx, qy, qz, qw).
More...
#include <FrameMgr3D.h>
|
|
Transform3D | operator* (const Transform3D &other) const |
| |
|
Transform3D | inverse () const |
| |
| std::array< float, 3 > | apply (const std::array< float, 3 > &point) const |
| | Applies this transform to a 3D point (x, y, z). Rotates the point by the quaternion and then translates it.
|
| |
|
|
float | tx = 0 |
| |
|
float | ty = 0 |
| |
|
float | tz = 0 |
| |
|
float | qx = 0 |
| |
|
float | qy = 0 |
| |
|
float | qz = 0 |
| |
|
float | qw = 1 |
| |
Represents a 3D rigid body transform: translation (tx, ty, tz) and quaternion rotation (qx, qy, qz, qw).
◆ apply()
| std::array< float, 3 > apply |
( |
const std::array< float, 3 > & |
point | ) |
const |
|
inline |
Applies this transform to a 3D point (x, y, z). Rotates the point by the quaternion and then translates it.
- Parameters
-
| point | Array of 3 floats: {x, y, z} |
- Returns
- Transformed point as std::array<float, 3>
The documentation for this struct was generated from the following file: