SpikeStream Library
0.2
|
00001 #ifndef POINT3D_H 00002 #define POINT3D_H 00003 00004 //Qt includes 00005 #include <QString> 00006 00007 namespace spikestream{ 00008 00010 class Point3D { 00011 public: 00012 Point3D(); 00013 Point3D(float xPos, float yPos, float zPos); 00014 Point3D(const Point3D& point); 00015 virtual ~Point3D(); 00016 Point3D& operator=(const Point3D& point); 00017 bool operator==(const Point3D& point) const; 00018 bool operator!=(const Point3D& point) const; 00019 float distance(const Point3D& point) const; 00020 float getXPos() const { return xPos; } 00021 float getYPos() const { return yPos; } 00022 float getZPos() const { return zPos; } 00023 void setXPos(float xPos) { this->xPos = xPos; } 00024 void setYPos(float yPos) { this->yPos = yPos; } 00025 void setZPos(float zPos) { this->zPos = zPos; } 00026 QString toString() const; 00027 void translate(float dx, float dy, float dz); 00028 00029 private: 00030 //================= VARIABLES ================== 00031 float xPos; 00032 float yPos; 00033 float zPos; 00034 }; 00035 00036 } 00037 00038 #endif//POINT3D_H 00039 00040