- Main Page
- Related Pages
- Modules
- Files

- File List

func_geometric.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 #ifndef glm_core_func_geometric
37 #define glm_core_func_geometric GLM_VERSION
38
39 namespace glm
40 {
43
50 template <typename genType>
51 typename genType::value_type length(
52 genType const & x);
53
60 template <typename genType>
61 typename genType::value_type distance(
62 genType const & p0,
63 genType const & p1);
64
71 template <typename genType>
72 typename genType::value_type dot(
73 genType const & x,
74 genType const & y);
75
82 template <typename valType>
83 detail::tvec3<valType> cross(
84 detail::tvec3<valType> const & x,
85 detail::tvec3<valType> const & y);
86
91 template <typename genType>
92 genType normalize(
93 genType const & x);
94
101 template <typename genType>
102 genType faceforward(
103 genType const & N,
104 genType const & I,
105 genType const & Nref);
106
114 template <typename genType>
115 genType reflect(
116 genType const & I,
117 genType const & N);
118
127 template <typename genType>
128 genType refract(
129 genType const & I,
130 genType const & N,
131 typename genType::value_type const & eta);
132
134 }//namespace glm
135
136 #include "func_geometric.inl"
137
138 #endif//glm_core_func_geometric