43 : _translation(translation)
46 , _rotationCenter(rotationCenter)
61 return _translation == rhs._translation && _rotation == rhs._rotation && _scale == rhs._scale &&
62 _rotationCenter == rhs._rotationCenter;
69 matrix = matrix * glm::translate(_translation);
70 matrix = matrix * glm::translate(_rotationCenter);
71 matrix = matrix * glm::toMat4(_rotation);
72 matrix = matrix * glm::translate(-1.0 * _rotationCenter);
75 matrix = glm::scale(matrix, _scale);
76 matrix[3][0] *= _scale.x;
77 matrix[3][1] *= _scale.y;
78 matrix[3][2] *= _scale.z;
99 const auto& scale = transformation.
getScale();
#define SERIALIZATION_FRIEND(type)
#define SERIALIZATION_ACCESS(type)
void _updateValue(T &member, const T &newValue, const bool triggerCallback=true)
const vec & getMin() const
const vec & getMax() const
glm::mat< 4, 4, double > Matrix4d
glm::vec< 3, double > Vector3d
Transformation operator*(const Transformation &a, const Transformation &b)
glm::tquat< double, glm::highp > Quaterniond
Double quaternion.
glm::vec< 4, double > Vector4d
Boxd transformBox(const Boxd &box, const Transformation &transformation)