Back to Mame

0.9.8: closest_point.hpp Source File

3rdparty/glm/doc/api/a00010_source.html

latest1.7 KB
Original Source

| | 0.9.8 |

closest_point.hpp

Go to the documentation of this file.

1

13 #pragma once

14

15 // Dependency:

16 #include "../glm.hpp"

17

18 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)

19 # pragma message("GLM: GLM_GTX_closest_point extension included")

20 #endif

21

22 namespace glm

23 {

26

29template <typename T, precision P>

30 GLM_FUNC_DECL tvec3<T, P> closestPointOnLine(

31 tvec3<T, P> const & point,

32 tvec3<T, P> const & a,

33 tvec3<T, P> const & b);

34

36template <typename T, precision P>

37 GLM_FUNC_DECL tvec2<T, P> closestPointOnLine(

38 tvec2<T, P> const & point,

39 tvec2<T, P> const & a,

40 tvec2<T, P> const & b);

41

43 }// namespace glm

44

45 #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