8#include <glm/gtc/type_ptr.hpp>
9#include <nlohmann/json.hpp>
11#include "galaxy/utils/Globals.hpp"
25 , m_scale {1.0f, 1.0f}
26 , m_origin {0.0f, 0.0f}
28 , m_transform {GALAXY_IDENTITY_MATRIX}
34 this->
m_pos = std::move(t.m_pos);
36 this->
m_scale = std::move(t.m_scale);
37 this->
m_origin = std::move(t.m_origin);
46 this->
m_pos = std::move(t.m_pos);
48 this->
m_scale = std::move(t.m_scale);
49 this->
m_origin = std::move(t.m_origin);
132 m_rotation = std::clamp(degrees, -360.0f, 360.0f);
146 m_pos = {0.0f, 0.0f};
179 const auto origin = glm::vec3 {
m_origin, 0.0f};
183 rotation = glm::translate(rotation, -origin);