From 54ee39ffd75421c4489d2b473de4a65ff541f21c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 29 Aug 2022 19:57:43 +0100 Subject: Ray function a calculate how close it passes to a line defined by 2 points --- lib/ray.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ray.hpp') diff --git a/lib/ray.hpp b/lib/ray.hpp index 4c0710a..bce4a30 100644 --- a/lib/ray.hpp +++ b/lib/ray.hpp @@ -8,4 +8,6 @@ public: glm::vec3 start; glm::vec3 direction; + + float distanceToLine(const glm::vec3 & a, const glm::vec3 & b) const; }; -- cgit v1.2.3