0.9.8 API documenation
Main Page
Modules
Files
File List
G:
Source
G-Truc
glm
glm
gtx
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 experimetal 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, precision P>
34
GLM_FUNC_DECL tvec3<T, P>
closestPointOnLine
(
35
tvec3<T, P>
const
& point,
36
tvec3<T, P>
const
& a,
37
tvec3<T, P>
const
& b);
38
40
template
<
typename
T, precision P>
41
GLM_FUNC_DECL tvec2<T, P>
closestPointOnLine
(
42
tvec2<T, P>
const
& point,
43
tvec2<T, P>
const
& a,
44
tvec2<T, P>
const
& b);
45
47
}
// namespace glm
48
49
#include "closest_point.inl"
glm
Definition:
_noise.hpp:11
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.10