- Main Page
- Related Pages
- Modules
- Files

- File List

gtc/ulp.hpp
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 #ifndef GLM_GTC_ulp
40 #define GLM_GTC_ulp GLM_VERSION
41
42 // Dependency:
43 #include "../glm.hpp"
44
45 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
46 # pragma message("GLM: GLM_GTC_ulp extension included")
47 #endif
48
49 namespace glm
50 {
53
56 template <typename genType>
57 genType next_float(genType const & x);
58
61 template <typename genType>
62 genType prev_float(genType const & x);
63
66 template <typename genType>
67 genType next_float(genType const & x, uint const & Distance);
68
71 template <typename genType>
72 genType prev_float(genType const & x, uint const & Distance);
73
76 template <typename T>
77 uint float_distance(T const & x, T const & y);
78
81 template<typename T, template<typename> class vecType>
82 vecType<uint> float_distance(vecType<T> const & x, vecType<T> const & y);
83
85 }// namespace glm
86
87 #include "ulp.inl"
88
89 #endif//GLM_GTC_ulp
90