GLM: closest_point.hpp Source File

GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

closest_point.hpp
1
38 #ifndef GLM_GTX_closest_point
39 #define GLM_GTX_closest_point
40
41 // Dependency:
42 #include "../glm.hpp"
43
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_closest_point extension included")
46 #endif
47
48 namespace glm
49 {
52
55 template <typename T, precision P>
56 detail::tvec3<T, P> closestPointOnLine(
57 detail::tvec3<T, P> const & point,
58 detail::tvec3<T, P> const & a,
59 detail::tvec3<T, P> const & b);
60
62 }// namespace glm
63
64 #include "closest_point.inl"
65
66 #endif//GLM_GTX_closest_point
glm::closestPointOnLine
detail::tvec3< T, P > closestPointOnLine(detail::tvec3< T, P > const &point, detail::tvec3< T, P > const &a, detail::tvec3< T, P > const &b)
Find the point on a straight line which is the closet of a point.