Small cleaning.

This commit is contained in:
James Grogan 2023-01-28 20:48:04 +00:00
parent 9e1d951520
commit 9f036d6438
8 changed files with 94 additions and 34 deletions

View file

@ -18,14 +18,8 @@ public:
~Point();
static std::unique_ptr<Point> Create(double x, double y, double z = 0);
void apply(const Transform& transform);
bool isAtOrigin() const;
void move(double x, double y, double z = 0);
double getX() const;
double getY() const;
@ -42,6 +36,17 @@ public:
Vector getDelta(const Point& point) const;
bool isAtOrigin() const;
void move(const Vector& vector);
void move(double x, double y = 0.0, double z = 0.0);
void operator+=(const Vector& vector)
{
move(vector);
}
bool operator==(const Point& rhs) const
{
return (mX == rhs.mX)