diff options
author | neoraider <devnull@localhost> | 2008-04-06 15:29:03 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-04-06 15:29:03 +0200 |
commit | 356efaf89afdad141b313767e1a2b89de3c08d0a (patch) | |
tree | 37edb2a0fc0ea15f4f60e45ed411cbea7b4c12c5 /Vertex.h | |
parent | 258eb984bafe0f667d1e76de61c8afaa23f39ef4 (diff) | |
download | zoomedit-356efaf89afdad141b313767e1a2b89de3c08d0a.tar zoomedit-356efaf89afdad141b313767e1a2b89de3c08d0a.zip |
zoomedit: Recreated ZoomEdit based on Glademm.
Diffstat (limited to 'Vertex.h')
-rw-r--r-- | Vertex.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/Vertex.h b/Vertex.h deleted file mode 100644 index 5f0db76..0000000 --- a/Vertex.h +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef VERTEX_H_ -#define VERTEX_H_ - -class Vertex { - private: - float x, y; - - public: - Vertex() {x = y = 0.0;} - Vertex(float x, float y) {this->x = x; this->y = y;} - - float getX() const {return x;} - void setX(float x) {this->x = x;} - - float getY() const {return y;} - void setY(float y) {this->y = y;} - - void setLocation(float x, float y) {this->x = x; this->y = y;} - - float distanceSq(const Vertex &v) const; - float distance(const Vertex &v) const; - - Vertex operator+(const Vertex &v) const; - Vertex operator-(const Vertex &v) const; - Vertex operator*(float f) const; - Vertex operator/(float f) const; - - Vertex& operator+=(const Vertex &v); - Vertex& operator-=(const Vertex &v); - Vertex& operator*=(float f); - Vertex& operator/=(float f); - -}; - -#endif /*VERTEX_H_*/ |