diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-12-09 16:25:16 +0100 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-12-09 16:25:16 +0100 |
commit | 3035d4c9e76d6f28579d0b5a024e1c1b2a538919 (patch) | |
tree | 497d32485f6510e39d82a2227fb1aaf3129f0206 /Vertex.h | |
parent | 482852aceacb54879c08e6fffc909a2cc160d483 (diff) | |
download | c3d-3035d4c9e76d6f28579d0b5a024e1c1b2a538919.tar c3d-3035d4c9e76d6f28579d0b5a024e1c1b2a538919.zip |
BSPTrees angefangen
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; }; |