|  | 0.9.9 API documenation
    | 
Find the point on a straight line which is the closet of a point. More...
| Functions | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | closestPointOnLine (tvec3< T, P > const &point, tvec3< T, P > const &a, tvec3< T, P > const &b) | 
| Find the point on a straight line which is the closet of a point.  More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec2< T, P > | closestPointOnLine (tvec2< T, P > const &point, tvec2< T, P > const &a, tvec2< T, P > const &b) | 
| 2d lines work as well | |
Find the point on a straight line which is the closet of a point.
<glm/gtx/closest_point.hpp> need to be included to use these functionalities.
| GLM_FUNC_DECL tvec3<T, P> glm::closestPointOnLine | ( | tvec3< T, P > const & | point, | 
| tvec3< T, P > const & | a, | ||
| tvec3< T, P > const & | b | ||
| ) | 
Find the point on a straight line which is the closet of a point.
 1.8.10
 1.8.10