summaryrefslogtreecommitdiffstats
path: root/Vertex.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-12-09 16:25:16 +0100
committerMatthias Schiffer <matthias@gamezock.de>2009-12-09 16:25:16 +0100
commit3035d4c9e76d6f28579d0b5a024e1c1b2a538919 (patch)
tree497d32485f6510e39d82a2227fb1aaf3129f0206 /Vertex.h
parent482852aceacb54879c08e6fffc909a2cc160d483 (diff)
downloadc3d-3035d4c9e76d6f28579d0b5a024e1c1b2a538919.tar
c3d-3035d4c9e76d6f28579d0b5a024e1c1b2a538919.zip
BSPTrees angefangen
Diffstat (limited to 'Vertex.h')
-rw-r--r--Vertex.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Vertex.h b/Vertex.h
index c82bd59..665430d 100644
--- a/Vertex.h
+++ b/Vertex.h
@@ -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;
};