diff options
Diffstat (limited to 'Vertex.h')
-rw-r--r-- | Vertex.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,6 +10,10 @@ class Vertex float getY() const {return y;} float getZ() const {return z;} + float distanceSq(const Vertex &v) const { + return x*v.x + y*v.y + z*v.z; + } + protected: float x, y, z; }; |