Switch to template types for vectors

This commit is contained in:
jmsgrogan 2023-01-30 14:53:49 +00:00
parent 9f036d6438
commit 8192ef78e8
105 changed files with 1614 additions and 1424 deletions

View file

@ -35,23 +35,23 @@ struct Scale
class Transform
{
public:
Transform(const Point& location = {}, const Scale& scale = {}, const Rotation& rotation = {});
Transform(const Point3& location = {}, const Scale& scale = {}, const Rotation& rotation = {});
void applyPre(const Transform& transform);
const Point& getLocation() const;
const Point3& getLocation() const;
const Scale& getScale() const;
const Rotation& getRotation() const;
const Matrix& getMatrix() const;
const SquareMatrix4& getMatrix() const;
bool isEqual(const Transform& transform) const;
bool isIdentityTransform() const;
void setLocation(const Point& loc);
void setLocation(const Point3& loc);
void setScale(const Scale& scale);
@ -70,8 +70,8 @@ public:
private:
void updateMatrix();
Point mLocation;
Point3 mLocation;
Scale mScale;
Rotation mRotation;
Matrix mMatrix;
SquareMatrix4 mMatrix;
};