From a8c1d6168797526b9d24bc8c86f2578f3be59fa8 Mon Sep 17 00:00:00 2001 From: neoraider Date: Fri, 14 Dec 2007 02:47:03 +0000 Subject: zoomedit: Verallgemeinerte Level-Objekte implementiert. --- Vertex.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Vertex.h') diff --git a/Vertex.h b/Vertex.h index 2f3fcff..c367bb2 100644 --- a/Vertex.h +++ b/Vertex.h @@ -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; -- cgit v1.2.3