summaryrefslogtreecommitdiffstats
path: root/Vertex.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-12-14 03:47:03 +0100
committerneoraider <devnull@localhost>2007-12-14 03:47:03 +0100
commita8c1d6168797526b9d24bc8c86f2578f3be59fa8 (patch)
tree8515976a634b788d99b2c894757a0b4ecbb6fa6a /Vertex.h
parentd82c597917d8ef5866c7a83d0c101f423a2ac05d (diff)
downloadzoomedit-a8c1d6168797526b9d24bc8c86f2578f3be59fa8.tar
zoomedit-a8c1d6168797526b9d24bc8c86f2578f3be59fa8.zip
zoomedit: Verallgemeinerte Level-Objekte implementiert.
Diffstat (limited to 'Vertex.h')
-rw-r--r--Vertex.h3
1 files changed, 1 insertions, 2 deletions
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;