summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-02-12 20:28:50 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-02-12 20:28:50 +0000
commitfa48542d7387ba376b56dc4f60f90fccbd037f92 (patch)
treef2f7c9c2048b4460f5c3a25c54bd29100a8f66b4 /lib
parentAdd stripiter (diff)
downloadilt-fa48542d7387ba376b56dc4f60f90fccbd037f92.tar.bz2
ilt-fa48542d7387ba376b56dc4f60f90fccbd037f92.tar.xz
ilt-fa48542d7387ba376b56dc4f60f90fccbd037f92.zip
Cast relative position accordingly in geometric plane
Diffstat (limited to 'lib')
-rw-r--r--lib/geometricPlane.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/geometricPlane.h b/lib/geometricPlane.h
index 3f95d3c..3b1a0e4 100644
--- a/lib/geometricPlane.h
+++ b/lib/geometricPlane.h
@@ -27,7 +27,7 @@ public:
[[nodiscard]] inline PlaneRelation
getRelation(PositionType point) const
{
- const auto d = glm::dot(normal, point - origin);
+ const auto d = glm::dot(normal, RelativePosition3D(point - origin));
return d < 0.F ? PlaneRelation::Below : d > 0.F ? PlaneRelation::Above : PlaneRelation::On;
}