0.9.9 API documenation
closest_point.hpp
Go to the documentation of this file.
1 
13 #pragma once
14 
15 // Dependency:
16 #include "../glm.hpp"
17 
18 #ifndef GLM_ENABLE_EXPERIMENTAL
19 # error "GLM: GLM_GTX_closest_point is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
20 #endif
21 
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
23 # pragma message("GLM: GLM_GTX_closest_point extension included")
24 #endif
25 
26 namespace glm
27 {
30 
33  template<typename T, qualifier P>
34  GLM_FUNC_DECL vec<3, T, P> closestPointOnLine(
35  vec<3, T, P> const & point,
36  vec<3, T, P> const & a,
37  vec<3, T, P> const & b);
38 
40  template<typename T, qualifier P>
41  GLM_FUNC_DECL vec<2, T, P> closestPointOnLine(
42  vec<2, T, P> const & point,
43  vec<2, T, P> const & a,
44  vec<2, T, P> const & b);
45 
47 }// namespace glm
48 
49 #include "closest_point.inl"
GLM_FUNC_DECL vec< 2, T, P > closestPointOnLine(vec< 2, T, P > const &point, vec< 2, T, P > const &a, vec< 2, T, P > const &b)
2d lines work as well
Definition: _noise.hpp:11