Defines a pose, consisting of translation, rotation, and scaling.
More...
|
| static Transformation | fromMatrix4x4 (const QMatrix4x4 &M) |
| | Extract a pose from a 4x4 matrix. This should be avoided if possible. This function assumes that the matrix contains tanslation, rotation, and positive scaling components, and nothing else. More...
|
| |
| static Transformation | interpolate (const Transformation &p0, const Transformation &p1, float alpha) |
| | Interpolate two poses. The value of alpha should be in [0,1], where 0 results in p0, and 1 results in p1. Positions are interpolated linearly and rotations are interpolated via spherical linear interpolation (slerp). More...
|
| |
Defines a pose, consisting of translation, rotation, and scaling.
◆ Transformation()
| CamSim::Transformation::Transformation |
( |
| ) |
|
Constructor for zero translation, zero rotation, and scale factor 1.
◆ fromMatrix4x4()
| static Transformation CamSim::Transformation::fromMatrix4x4 |
( |
const QMatrix4x4 & |
M | ) |
|
|
static |
Extract a pose from a 4x4 matrix. This should be avoided if possible. This function assumes that the matrix contains tanslation, rotation, and positive scaling components, and nothing else.
◆ interpolate()
Interpolate two poses. The value of alpha should be in [0,1], where 0 results in p0, and 1 results in p1. Positions are interpolated linearly and rotations are interpolated via spherical linear interpolation (slerp).
◆ toMatrix4x4()
| QMatrix4x4 CamSim::Transformation::toMatrix4x4 |
( |
| ) |
const |
Return this pose as a 4x4 matrix.
◆ rotation
| QQuaternion CamSim::Transformation::rotation |
◆ scaling
| QVector3D CamSim::Transformation::scaling |
◆ translation
| QVector3D CamSim::Transformation::translation |
The documentation for this class was generated from the following file: