6#include <glm/gtc/matrix_transform.hpp>
16 const glm::vec3 &
position = glm::vec3(0.0f, 0.0f, 0.0f),
17 const glm::vec3 &
rotation = glm::vec3(0.0f, 0.0f, 0.0f),
18 const glm::vec3 &
scale = glm::vec3(1.0f, 1.0f, 1.0f),
30 glm::dmat4
model = glm::dmat4(1.0f);
58 Mat4(
const glm::dmat4 &
mat = glm::dmat4(1.0)):
70 return glm::mat4(m_mat);
75 m_mat = glm::translate(m_mat, vec);
81 m_mat = glm::rotate(m_mat, angle, axis);
87 m_mat = glm::scale(m_mat, vec);
Definition: Transform.hpp:54
glm::mat4 mat() const
Definition: Transform.hpp:68
Mat4 & rotate(double angle, const glm::dvec3 &axis)
Definition: Transform.hpp:79
Mat4 & scale(const glm::dvec3 &vec)
Definition: Transform.hpp:85
Mat4(const glm::dmat4 &mat=glm::dmat4(1.0))
Definition: Transform.hpp:58
glm::dmat4 dmat() const
Definition: Transform.hpp:63
Mat4 & translate(const glm::dvec3 &vec)
Definition: Transform.hpp:73