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::length
GLM_FUNC_DECL genType::value_type length(genType const &x)
glm::normalize
GLM_FUNC_DECL genType normalize(genType const &x)
glm::reflect
GLM_FUNC_DECL genType reflect(genType const &I, genType const &N)
glm::distance
GLM_FUNC_DECL genType::value_type distance(genType const &p0, genType const &p1)
glm::refract
GLM_FUNC_DECL vecType< T, P > refract(vecType< T, P > const &I, vecType< T, P > const &N, T const &eta)
glm::dot
GLM_FUNC_DECL T dot(vecType< T, P > const &x, vecType< T, P > const &y)
glm
Definition: _literals.hpp:31
Eigen::Triplet
glm::cross
GLM_FUNC_DECL detail::tvec3< T, P > cross(detail::tvec3< T, P > const &x, detail::tvec3< T, P > const &y)
type_vec3.hpp
GLM_FUNC_DECL
#define GLM_FUNC_DECL
Definition: setup.hpp:728
glm::faceforward
GLM_FUNC_DECL genType faceforward(genType const &N, genType const &I, genType const &Nref)


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:10