diff options
Diffstat (limited to 'Vertex.h')
-rw-r--r-- | Vertex.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -4,9 +4,9 @@ class Vertex { private: float x, y; + public: Vertex() {x = y = 0.0;} - Vertex(const Vertex &v) {x = v.x; y = v.y;} Vertex(float x, float y) {this->x = x; this->y = y;} float getX() const {return x;} @@ -15,7 +15,6 @@ class Vertex { float getY() const {return y;} void setY(float y) {this->y = y;} - void setLocation(const Vertex &v) {x = v.x; y = v.y;} void setLocation(float x, float y) {this->x = x; this->y = y;} float distanceSq(const Vertex &v) const; |