Update closest_point.hpp

Algorithm works fine with 2d points as well...
master
SiliconKiwi ago%!(EXTRA string=11 years)
parent ec513f4466
commit ad85092433
  1. 7
      glm/gtx/closest_point.hpp

@ -57,6 +57,13 @@ namespace glm
detail::tvec3<T, P> const & a,
detail::tvec3<T, P> const & b);
/// 2d lines work as well
template <typename T, precision P>
GLM_FUNC_DECL detail::tvec2<T, P> closestPointOnLine(
detail::tvec2<T, P> const & point,
detail::tvec2<T, P> const & a,
detail::tvec2<T, P> const & b);
/// @}
}// namespace glm

Loading…
Cancel
Save