Flow Visualisation
func_geometric.hpp
Go to the documentation of this file.
1 
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  GLM_FUNC_DECL typename genType::value_type length(
52  genType const & x);
53 
60  template <typename genType>
61  GLM_FUNC_DECL typename genType::value_type distance(
62  genType const & p0,
63  genType const & p1);
64 
71  template <typename genType>
72  GLM_FUNC_DECL typename genType::value_type dot(
73  genType const & x,
74  genType const & y);
75 
82  template <typename valType>
83  GLM_FUNC_DECL detail::tvec3<valType> cross(
84  detail::tvec3<valType> const & x,
85  detail::tvec3<valType> const & y);
86 
91  template <typename genType>
92  GLM_FUNC_DECL genType normalize(
93  genType const & x);
94 
101  template <typename genType>
102  GLM_FUNC_DECL genType faceforward(
103  genType const & N,
104  genType const & I,
105  genType const & Nref);
106 
114  template <typename genType>
115  GLM_FUNC_DECL genType reflect(
116  genType const & I,
117  genType const & N);
118 
127  template <typename genType>
128  GLM_FUNC_DECL 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
GLM_FUNC_DECL genType refract(genType const &I, genType const &N, typename genType::value_type const &eta)
Definition: func_geometric.inl:304
GLM_FUNC_DECL genType reflect(genType const &I, genType const &N)
Definition: func_geometric.inl:274
GLM_FUNC_DECL genType::value_type dot(genType const &x, genType const &y)
Definition: func_geometric.inl:132
Definition: _detail.hpp:38
GLM_FUNC_DECL genType::value_type distance(genType const &p0, genType const &p1)
Definition: func_geometric.inl:83
GLM_FUNC_DECL genType normalize(genType const &x)
Definition: func_geometric.inl:213
GLM_FUNC_DECL genType::value_type length(genType const &x)
Definition: func_geometric.inl:34
GLM_FUNC_DECL genType faceforward(genType const &N, genType const &I, genType const &Nref)
Definition: func_geometric.inl:262
GLM_FUNC_DECL detail::tvec3< valType > cross(detail::tvec3< valType > const &x, detail::tvec3< valType > const &y)
#define GLM_FUNC_DECL
Definition: setup.hpp:678