Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/mapfile.h')
-rw-r--r--src/model/mapfile.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/model/mapfile.h b/src/model/mapfile.h
index a12e295..c78b56c 100644
--- a/src/model/mapfile.h
+++ b/src/model/mapfile.h
@@ -128,6 +128,14 @@ private:
inline const math::BoundingBox3f & box() const {
return map_box;
}
+
+ inline bool collinear(const math::Vector3f & a, const math::Vector3f & b, const math::Vector3f & c)
+ {
+ if ((distance(a, b) + distance(b, c)) == distance(a, c))
+ return true;
+ else
+ return false;
+ }
/// close the file
void close();