0.9.6
Main Page
Modules
Files
File List
E:
Source
G-Truc
glm
glm
gtx
closest_point.hpp
1
38
#pragma once
39
40
// Dependency:
41
#include "../glm.hpp"
42
43
#if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
44
# pragma message("GLM: GLM_GTX_closest_point extension included")
45
#endif
46
47
namespace
glm
48
{
51
54
template
<
typename
T, precision P>
55
GLM_FUNC_DECL tvec3<T, P>
closestPointOnLine
(
56
tvec3<T, P>
const
& point,
57
tvec3<T, P>
const
& a,
58
tvec3<T, P>
const
& b);
59
61
template
<
typename
T, precision P>
62
GLM_FUNC_DECL tvec2<T, P>
closestPointOnLine
(
63
tvec2<T, P>
const
& point,
64
tvec2<T, P>
const
& a,
65
tvec2<T, P>
const
& b);
66
68
}
// namespace glm
69
70
#include "closest_point.inl"
glm
Definition:
_noise.hpp:31
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
Generated by
1.8.8