diff --git a/glm/gtx/closest_point.hpp b/glm/gtx/closest_point.hpp index d0f17155..eb893291 100644 --- a/glm/gtx/closest_point.hpp +++ b/glm/gtx/closest_point.hpp @@ -56,6 +56,13 @@ namespace glm detail::tvec3 const & point, detail::tvec3 const & a, detail::tvec3 const & b); + + /// 2d lines work as well + template + GLM_FUNC_DECL detail::tvec2 closestPointOnLine( + detail::tvec2 const & point, + detail::tvec2 const & a, + detail::tvec2 const & b); /// @} }// namespace glm