func_geometric.hpp
Go to the documentation of this file.
1 
36 #pragma once
37 
38 #include "type_vec3.hpp"
39 
40 namespace glm
41 {
44 
51  template <typename genType>
52  GLM_FUNC_DECL typename genType::value_type length(
53  genType const & x);
54 
61  template <typename genType>
62  GLM_FUNC_DECL typename genType::value_type distance(
63  genType const & p0,
64  genType const & p1);
65 
72  template <typename T, precision P, template <typename, precision> class vecType>
74  vecType<T, P> const & x,
75  vecType<T, P> const & y);
76 
83  template <typename genType>
84  GLM_FUNC_DECL genType dot(
85  genType const & x,
86  genType const & y);
87 
94  template <typename T, precision P>
95  GLM_FUNC_DECL detail::tvec3<T, P> cross(
96  detail::tvec3<T, P> const & x,
97  detail::tvec3<T, P> const & y);
98 
103  template <typename genType>
104  GLM_FUNC_DECL genType normalize(
105  genType const & x);
106 
113  template <typename genType>
114  GLM_FUNC_DECL genType faceforward(
115  genType const & N,
116  genType const & I,
117  genType const & Nref);
118 
126  template <typename genType>
127  GLM_FUNC_DECL genType reflect(
128  genType const & I,
129  genType const & N);
130 
139  template <typename T, precision P, template <typename, precision> class vecType>
140  GLM_FUNC_DECL vecType<T, P> refract(
141  vecType<T, P> const & I,
142  vecType<T, P> const & N,
143  T const & eta);
144 
146 }//namespace glm
147 
148 #include "func_geometric.inl"
GLM_FUNC_DECL genType reflect(genType const &I, genType const &N)
GLM_FUNC_DECL genType::value_type distance(genType const &p0, genType const &p1)
GLM_FUNC_DECL genType normalize(genType const &x)
GLM_FUNC_DECL detail::tvec3< T, P > cross(detail::tvec3< T, P > const &x, detail::tvec3< T, P > const &y)
GLM_FUNC_DECL vecType< T, P > refract(vecType< T, P > const &I, vecType< T, P > const &N, T const &eta)
GLM_FUNC_DECL T dot(vecType< T, P > const &x, vecType< T, P > const &y)
GLM_FUNC_DECL genType::value_type length(genType const &x)
GLM_FUNC_DECL genType faceforward(genType const &N, genType const &I, genType const &Nref)
#define GLM_FUNC_DECL
Definition: setup.hpp:728


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Dec 14 2020 03:34:58