From 4d7b1da29e0957ac798ee8e6da8288cbd4ae5c79 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Thu, 18 May 2017 19:03:05 +0500 Subject: 2017-05-18 --- depedencies/include/glm/gtx/closest_point.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'depedencies/include/glm/gtx') diff --git a/depedencies/include/glm/gtx/closest_point.inl b/depedencies/include/glm/gtx/closest_point.inl index 5c6a879..ccda9ab 100644 --- a/depedencies/include/glm/gtx/closest_point.inl +++ b/depedencies/include/glm/gtx/closest_point.inl @@ -15,7 +15,7 @@ namespace glm tvec3 Vector = point - a; tvec3 LineDirection = (b - a) / LineLength; - // Project Vector to LineDirection to get the distance of point from a + // Project Vector3 to LineDirection to get the distance of point from a T Distance = dot(Vector, LineDirection); if(Distance <= T(0)) return a; @@ -35,8 +35,8 @@ namespace glm tvec2 Vector = point - a; tvec2 LineDirection = (b - a) / LineLength; - // Project Vector to LineDirection to get the distance of point from a - T Distance = dot(Vector, LineDirection); + // Project Vector3 to LineDirection to get the distance of point from a + T Distance = dot(Vector3, LineDirection); if(Distance <= T(0)) return a; if(Distance >= LineLength) return b; -- cgit v1.2.3