mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
Update closest_point.hpp
Algorithm works fine with 2d points as well...
This commit is contained in:
parent
ec513f4466
commit
ad85092433
@ -56,6 +56,13 @@ namespace glm
|
||||
detail::tvec3<T, P> const & point,
|
||||
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…
Reference in New Issue
Block a user