Rigid transformation class. More...
#include <transform.h>
Public Member Functions | |
| Transform () | |
| Default constructor. Creates identity transform. | |
| Transform (const Rotation &rotation, const Point3 &translation) | |
| Constructor for rotation and translation input. | |
| Transform & | operator*= (const Transform &t) |
| Obtains the composition of the current and input transforms. | |
| Point3 | operator() (const Point3 &p) const |
| Applies transform to input point. | |
| bool | operator== (const Transform &t) const |
| bool | operator!= (const Transform &t) const |
| Transform | inverse () const |
| Inverse transform. | |
| Point3 | getTranslation () const |
| Gets translational component of transform. | |
| Point3 & | getTranslationRef () |
| const Point3 & | getTranslationRef () const |
| Rotation | getRotation () const |
| Gets rotational component of transform. | |
| Rotation & | getRotationRef () |
| const Rotation & | getRotationRef () const |
| void | setTranslation (const Point3 &translation) |
| Sets translational component of transform. | |
| void | setRotation (const Rotation &rotation) |
| Sets rotational component of transform. | |
| void | setIdentity () |
| Sets identity transform. | |
Rigid transformation class.
The Transform class provides the usual operators and functions used for expressing and manipulating rigid transformations.
This is an example of how to use the Transform class:
1.8.1.2