summaryrefslogtreecommitdiff
path: root/lib/geometricPlane.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-07 13:04:31 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-07 13:04:31 +0000
commit6a1df3dfbae98a05e74c646cc216fbc19ffdb6d6 (patch)
tree46c42bcbef1f12c4f46d53b4e0c4736bea506b51 /lib/geometricPlane.h
parentUnified crossProduct (diff)
downloadilt-6a1df3dfbae98a05e74c646cc216fbc19ffdb6d6.tar.bz2
ilt-6a1df3dfbae98a05e74c646cc216fbc19ffdb6d6.tar.xz
ilt-6a1df3dfbae98a05e74c646cc216fbc19ffdb6d6.zip
Template Ray on position type
Diffstat (limited to 'lib/geometricPlane.h')
-rw-r--r--lib/geometricPlane.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/geometricPlane.h b/lib/geometricPlane.h
index fd3a1d7..3f95d3c 100644
--- a/lib/geometricPlane.h
+++ b/lib/geometricPlane.h
@@ -32,7 +32,7 @@ public:
}
[[nodiscard]] inline std::optional<DistAndPosition>
- getRayIntersectPosition(const Ray & ray) const
+ getRayIntersectPosition(const Ray<PositionType> & ray) const
{
float dist {};
if (!glm::intersectRayPlane(ray.start, ray.direction, origin, normal, dist)) {