diff options
Diffstat (limited to 'Vertex.h')
-rw-r--r-- | Vertex.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Vertex.h b/Vertex.h new file mode 100644 index 0000000..c82bd59 --- /dev/null +++ b/Vertex.h @@ -0,0 +1,18 @@ +#ifndef _VERTEX_H_ +#define _VERTEX_H_ + +class Vertex +{ + public: + Vertex(float x0 = 0, float y0 = 0, float z0 = 0) : x(x0), y(y0), z(z0) {} + + float getX() const {return x;} + float getY() const {return y;} + float getZ() const {return z;} + + protected: + float x, y, z; +}; + +#endif /*_VERTEX_H_*/ + |