GLM: func_vector_relational.hpp Source File

GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

func_vector_relational.hpp
1
41 #ifndef GLM_CORE_func_vector_relational
42 #define GLM_CORE_func_vector_relational
43
44 #include "precision.hpp"
45 #include "setup.hpp"
46
47 #if !((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER <= GLM_COMPILER_VC10)) // Workaround a Visual C++ bug
48
49 namespace glm
50 {
53
60 // TODO: Mismatched
61 //template <typename T, precision P, template <typename, precision> class vecType>
62 //GLM_FUNC_DECL typename vecType<T, P>::bool_type lessThan(vecType<T, P> const & x, vecType<T, P> const & y);
63
70 template <typename T, precision P, template <typename, precision> class vecType>
71 GLM_FUNC_DECL typename vecType<T, P>::bool_type lessThanEqual(vecType<T, P> const & x, vecType<T, P> const & y);
72
79 template <typename T, precision P, template <typename, precision> class vecType>
80 GLM_FUNC_DECL typename vecType<T, P>::bool_type greaterThan(vecType<T, P> const & x, vecType<T, P> const & y);
81
88 template <typename T, precision P, template <typename, precision> class vecType>
89 GLM_FUNC_DECL typename vecType<T, P>::bool_type greaterThanEqual(vecType<T, P> const & x, vecType<T, P> const & y);
90
97 //TODO: conflicts with definision
98 //template <typename T, precision P, template <typename, precision> class vecType>
99 //GLM_FUNC_DECL typename vecType<T, P>::bool_type equal(vecType<T, P> const & x, vecType<T, P> const & y);
100
107 template <typename T, precision P, template <typename, precision> class vecType>
108 GLM_FUNC_DECL typename vecType<T, P>::bool_type notEqual(vecType<T, P> const & x, vecType<T, P> const & y);
109
116 template <precision P, template <typename, precision> class vecType>
117 GLM_FUNC_DECL bool any(vecType<bool, P> const & v);
118
125 template <precision P, template <typename, precision> class vecType>
126 GLM_FUNC_DECL bool all(vecType<bool, P> const & v);
127
135 template <precision P, template <typename, precision> class vecType>
136 GLM_FUNC_DECL vecType<bool, P> not_(vecType<bool, P> const & v);
137
139 }//namespace glm
140
141 #endif
142
143 #include "func_vector_relational.inl"
144
145 #endif//GLM_CORE_func_vector_relational
glm::notEqual
GLM_FUNC_DECL vecType< T, P >::bool_type notEqual(vecType< T, P > const &x, vecType< T, P > const &y)
Returns the component-wise comparison of result x == y.
glm::any
GLM_FUNC_DECL bool any(vecType< bool, P > const &v)
Returns true if any component of x is true.
glm::greaterThanEqual
GLM_FUNC_DECL vecType< T, P >::bool_type greaterThanEqual(vecType< T, P > const &x, vecType< T, P > const &y)
Returns the component-wise comparison of result x &gt;= y.
glm::not_
GLM_FUNC_DECL vecType< bool, P > not_(vecType< bool, P > const &v)
Returns the component-wise logical complement of x.
glm::greaterThan
GLM_FUNC_DECL vecType< T, P >::bool_type greaterThan(vecType< T, P > const &x, vecType< T, P > const &y)
Returns the component-wise comparison of result x &gt; y.
glm::lessThanEqual
GLM_FUNC_DECL vecType< T, P >::bool_type lessThanEqual(vecType< T, P > const &x, vecType< T, P > const &y)
Returns the component-wise comparison result of x &lt; y.
glm::all
GLM_FUNC_DECL bool all(vecType< bool, P > const &v)
Returns true if all components of x are true.