mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Update closest_point.hpp
Algorithm works fine with 2d points as well...
This commit is contained in:
parent
ec513f4466
commit
ad85092433
@ -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…
Reference in New Issue
Block a user