| 0.9.6

- Main Page
- Modules
- Files

- File List

closest_point.hpp
Go to the documentation of this file.
1
42 #pragma once
43
44 // Dependency:
45 #include "../glm.hpp"
46
47 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
48 # pragma message("GLM: GLM_GTX_closest_point extension included")
49 #endif
50
51 namespace glm
52 {
55
58 template <typename T, precision P>
59 GLM_FUNC_DECL tvec3<T, P> closestPointOnLine(
60 tvec3<T, P> const & point,
61 tvec3<T, P> const & a,
62 tvec3<T, P> const & b);
63
65 template <typename T, precision P>
66 GLM_FUNC_DECL tvec2<T, P> closestPointOnLine(
67 tvec2<T, P> const & point,
68 tvec2<T, P> const & a,
69 tvec2<T, P> const & b);
70
72 }// namespace glm
73
74 #include "closest_point.inl"
glm::closestPointOnLine
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
glm
Definition: _noise.hpp:39