A translation.
More...
#include <gf/Transform.h>
A translation.
- See also
- gf::Rotation, gf::Transform
gf::Translation::Translation |
( |
| ) |
|
|
inline |
Default constructor.
The default translation has a null offset
gf::Translation::Translation |
( |
Vector2f |
translationOffset | ) |
|
|
inline |
Constructor with an offset.
- Parameters
-
translationOffset | The translation offset |
Vector2f gf::Translation::getOffset |
( |
| ) |
const |
|
inlinenoexcept |
Get the translation offset.
- Returns
- The current translation offset
void gf::Translation::setOffset |
( |
Vector2f |
newOffset | ) |
|
|
inlinenoexcept |
Set the translation offset.
- Parameters
-
Apply an inverse translation to a 2D point.
- Parameters
-
translation | The translation |
point | The point to transform |
- Returns
- The transformed point
Apply a translation to a 2D point.
- Parameters
-
translation | The translation |
point | The point to transform |
- Returns
- The transformed point
The offset of the translation.