diff options
author | neoraider <devnull@localhost> | 2007-09-26 21:28:04 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-09-26 21:28:04 +0200 |
commit | 1e9704dca9a861ffb7b2d3978e1390bea7af7ef0 (patch) | |
tree | 5c6b7cc9486cb48129549f65b969f490fbf01d7a /Vertex.h | |
parent | 62e42408485e9e1b7e939925b650a4b2e90ecddb (diff) | |
download | zoomedit-1e9704dca9a861ffb7b2d3978e1390bea7af7ef0.tar zoomedit-1e9704dca9a861ffb7b2d3978e1390bea7af7ef0.zip |
zoomedit: ?berschlagene Polygone werden jetzt korrekt gerendert
Diffstat (limited to 'Vertex.h')
-rw-r--r-- | Vertex.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -3,23 +3,23 @@ class Vertex { private: - double x, y; + float x, y; public: Vertex() {x = y = 0.0;} Vertex(const Vertex &v) {x = v.x; y = v.y;} - Vertex(double x, double y) {this->x = x; this->y = y;} + Vertex(float x, float y) {this->x = x; this->y = y;} - double getX() const {return x;} - void setX(double x) {this->x = x;} + float getX() const {return x;} + void setX(float x) {this->x = x;} - double getY() const {return y;} - void setY(double y) {this->y = y;} + 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(double x, double y) {this->x = x; this->y = y;} + void setLocation(float x, float y) {this->x = x; this->y = y;} - double distanceSq(const Vertex &v) const; - double distance(const Vertex &v) const; + float distanceSq(const Vertex &v) const; + float distance(const Vertex &v) const; Vertex operator+(const Vertex &v) const; Vertex operator-(const Vertex &v) const; |