Transform used to manipulate the position, scale, center, and rotation of objects.
More...
#include <Transform.hpp>
Transform used to manipulate the position, scale, center, and rotation of objects.
◆ Transform()
pk::Transform::Transform |
( |
| ) |
|
◆ ~Transform()
virtual pk::Transform::~Transform |
( |
| ) |
|
|
virtual |
◆ getAngle()
float pk::Transform::getAngle |
( |
| ) |
|
|
inline |
Get the current angle of the transformable object (in degrees).
- Returns
- float - a plain float corresponding to an angle (in degrees).
◆ getCenter()
glm::vec2 *const pk::Transform::getCenter |
( |
| ) |
|
|
inline |
Get the current center point of the transformable.
- Returns
- glm::vec2 - a glm::vec2 corresponding to the current center point of the transformable.
◆ getPosition()
glm::vec2 pk::Transform::getPosition |
( |
| ) |
|
|
inline |
Get the current position of the transformable.
- Returns
- glm::vec2 - a glm::vec2 corresponding to a position.
◆ getTransformData()
Get the current transform data for the transformable.
- Returns
- const transformData & - transform data for the transformable.
◆ setAngle()
void pk::Transform::setAngle |
( |
float |
angle | ) |
|
|
inline |
Set the angle for the transformable (in degrees).
- Parameters
-
float | angle - a float corresponding to an angle (in degrees). |
◆ setCenter()
void pk::Transform::setCenter |
( |
glm::vec2 & |
point | ) |
|
|
inline |
Set the center point for the transformable object.
- Parameters
-
glm::vec2 | &point - a glm::vec2 you want to set the center point of the transformable object to. |
◆ setPosition()
void pk::Transform::setPosition |
( |
glm::vec2 |
position | ) |
|
|
inline |
Set the position of the transformable in the Window.
- Parameters
-
glm::ivec2 | position - a glm::ivec2 specifying a position. |
◆ setTransformData()
Set the transform data for the transformable object.
- Parameters
-
◆ m_data
The documentation for this class was generated from the following file: