0.9.7
func_vector_relational.hpp
Go to the documentation of this file.
1 
45 #pragma once
46 
47 #include "precision.hpp"
48 #include "setup.hpp"
49 
50 namespace glm
51 {
54 
61  template <typename T, precision P, template <typename, precision> class vecType>
62  GLM_FUNC_DECL vecType<bool, P> 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 vecType<bool, P> 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 vecType<bool, P> 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 vecType<bool, P> greaterThanEqual(vecType<T, P> const & x, vecType<T, P> const & y);
90 
97  template <typename T, precision P, template <typename, precision> class vecType>
98  GLM_FUNC_DECL vecType<bool, P> equal(vecType<T, P> const & x, vecType<T, P> const & y);
99 
106  template <typename T, precision P, template <typename, precision> class vecType>
107  GLM_FUNC_DECL vecType<bool, P> notEqual(vecType<T, P> const & x, vecType<T, P> const & y);
108 
115  template <precision P, template <typename, precision> class vecType>
116  GLM_FUNC_DECL bool any(vecType<bool, P> const & v);
117 
124  template <precision P, template <typename, precision> class vecType>
125  GLM_FUNC_DECL bool all(vecType<bool, P> const & v);
126 
134  template <precision P, template <typename, precision> class vecType>
135  GLM_FUNC_DECL vecType<bool, P> not_(vecType<bool, P> const & v);
136 
138 }//namespace glm
139 
140 #include "func_vector_relational.inl"
GLM_FUNC_DECL vecType< bool, P > lessThan(vecType< T, P > const &x, vecType< T, P > const &y)
Returns the component-wise comparison result of x < y.
GLM_FUNC_DECL vecType< bool, P > greaterThanEqual(vecType< T, P > const &x, vecType< T, P > const &y)
Returns the component-wise comparison of result x >= y.
GLM_FUNC_DECL vecType< bool, P > greaterThan(vecType< T, P > const &x, vecType< T, P > const &y)
Returns the component-wise comparison of result x > y.
GLM_FUNC_DECL bool all(vecType< bool, P > const &v)
Returns true if all components of x are true.
Definition: _noise.hpp:40
GLM_FUNC_DECL vecType< bool, P > lessThanEqual(vecType< T, P > const &x, vecType< T, P > const &y)
Returns the component-wise comparison of result x <= y.
GLM_FUNC_DECL vecType< bool, P > equal(vecType< T, P > const &x, vecType< T, P > const &y)
Returns the component-wise comparison of result x == y.
OpenGL Mathematics (glm.g-truc.net)
GLM_FUNC_DECL bool any(vecType< bool, P > const &v)
Returns true if any component of x is true.
GLM_FUNC_DECL vecType< bool, P > not_(vecType< bool, P > const &v)
Returns the component-wise logical complement of x.
OpenGL Mathematics (glm.g-truc.net)
GLM_FUNC_DECL vecType< bool, P > notEqual(vecType< T, P > const &x, vecType< T, P > const &y)
Returns the component-wise comparison of result x != y.