summaryrefslogtreecommitdiff
path: root/lib/geometricPlane.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-05 20:20:14 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-05 20:20:14 +0000
commit335e9c6b4bbc5bbf1a861ac16abf612f5519dd5e (patch)
treece88489a661a605a010d1335776712078e9029ec /lib/geometricPlane.cpp
parentInline functions of GeometricPlane (diff)
downloadilt-335e9c6b4bbc5bbf1a861ac16abf612f5519dd5e.tar.bz2
ilt-335e9c6b4bbc5bbf1a861ac16abf612f5519dd5e.tar.xz
ilt-335e9c6b4bbc5bbf1a861ac16abf612f5519dd5e.zip
Template GeometicPlane on Position type
Diffstat (limited to 'lib/geometricPlane.cpp')
-rw-r--r--lib/geometricPlane.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/geometricPlane.cpp b/lib/geometricPlane.cpp
new file mode 100644
index 0000000..7aadf6a
--- /dev/null
+++ b/lib/geometricPlane.cpp
@@ -0,0 +1,8 @@
+#include "geometricPlane.h"
+
+bool
+GeometricPlane::isIntersect(PlaneRelation a, PlaneRelation b)
+{
+ return ((a == PlaneRelation::Above && b == PlaneRelation::Below)
+ || (a == PlaneRelation::Below && b == PlaneRelation::Above));
+}