Practical Tools for Simple Design
Loading...
Searching...
No Matches
Transform.hpp
1#ifndef UTIL_TRANSFORM_HPP
2#define UTIL_TRANSFORM_HPP
3
4#include <glm/glm.hpp>
5#include <glm/gtc/matrix_transform.hpp>
6
7namespace Util {
8
16struct Transform {
23 glm::vec2 translation = {0, 0};
24
32 float rotation = 0;
33
40 glm::vec2 scale = {1, 1};
41};
42
43} // namespace Util
44
45#endif /* UTIL_TRANSFORM_HPP */
Useful tools for development.
Definition: Animation.hpp:12
A struct representing a transformation in 2D space.
Definition: Transform.hpp:16
float rotation
The rotation of the transformation.
Definition: Transform.hpp:32
glm::vec2 scale
The scale of the transformation.
Definition: Transform.hpp:40
glm::vec2 translation
The translation of the transformation.
Definition: Transform.hpp:23