#include <definitions.hpp>
This is the struct that represents the position, rotation and scale of a node among other things. The position is stored as a Vector2, and the rotation and scale are stored in a transformation matrix.
There are a lot of operations you can do to a Transform:
Definition definitions.hpp:77
◆ applyTo() [1/2]
◆ applyTo() [2/2]
◆ degToRad()
| float Transform::degToRad |
( |
float |
degrees | ) |
|
|
static |
◆ getAngle()
| float Transform::getAngle |
( |
| ) |
const |
◆ getAngleRadians()
| float Transform::getAngleRadians |
( |
| ) |
const |
◆ getDegrees()
| float Transform::getDegrees |
( |
| ) |
const |
◆ getScale()
| Vector2 Transform::getScale |
( |
| ) |
const |
◆ inverse()
◆ lookAt()
| void Transform::lookAt |
( |
const Vector2 & |
point | ) |
|
◆ radToDeg()
| float Transform::radToDeg |
( |
float |
radians | ) |
|
|
static |
◆ rotate()
| void Transform::rotate |
( |
float |
angle | ) |
|
◆ rotateRadians()
| void Transform::rotateRadians |
( |
float |
radians | ) |
|
◆ scale()
| void Transform::scale |
( |
Vector2 |
scale | ) |
|
◆ serialize()
template<class Archive >
| void Transform::serialize |
( |
Archive & |
ar | ) |
|
|
inline |
◆ setAngle()
| void Transform::setAngle |
( |
float |
angle | ) |
|
◆ setAngleRadians()
| void Transform::setAngleRadians |
( |
float |
radians | ) |
|
◆ setScale()
| void Transform::setScale |
( |
Vector2 |
scale | ) |
|
◆ position
| Vector2 Transform::position = {0, 0} |
◆ transformation
| Matrix2 Transform::transformation = {{{1, 0}, {0, 1}}} |
The documentation for this struct was generated from the following files: