0.9.6
func_vector_relational.hpp
Go to the documentation of this file.
1 
41 #pragma once
42 
43 #include "precision.hpp"
44 #include "setup.hpp"
45 
46 namespace glm
47 {
50 
57  template <typename T, precision P, template <typename, precision> class vecType>
58  GLM_FUNC_DECL vecType<bool, P> lessThan(vecType<T, P> const & x, vecType<T, P> const & y);
59 
66  template <typename T, precision P, template <typename, precision> class vecType>
67  GLM_FUNC_DECL vecType<bool, P> lessThanEqual(vecType<T, P> const & x, vecType<T, P> const & y);
68 
75  template <typename T, precision P, template <typename, precision> class vecType>
76  GLM_FUNC_DECL vecType<bool, P> greaterThan(vecType<T, P> const & x, vecType<T, P> const & y);
77 
84  template <typename T, precision P, template <typename, precision> class vecType>
85  GLM_FUNC_DECL vecType<bool, P> greaterThanEqual(vecType<T, P> const & x, vecType<T, P> const & y);
86 
93  template <typename T, precision P, template <typename, precision> class vecType>
94  GLM_FUNC_DECL vecType<bool, P> equal(vecType<T, P> const & x, vecType<T, P> const & y);
95 
102  template <typename T, precision P, template <typename, precision> class vecType>
103  GLM_FUNC_DECL vecType<bool, P> notEqual(vecType<T, P> const & x, vecType<T, P> const & y);
104 
111  template <precision P, template <typename, precision> class vecType>
112  GLM_FUNC_DECL bool any(vecType<bool, P> const & v);
113 
120  template <precision P, template <typename, precision> class vecType>
121  GLM_FUNC_DECL bool all(vecType<bool, P> const & v);
122 
130  template <precision P, template <typename, precision> class vecType>
131  GLM_FUNC_DECL vecType<bool, P> not_(vecType<bool, P> const & v);
132 
134 }//namespace glm
135 
136 #include "func_vector_relational.inl"
GLM_FUNC_DECL bool all(vecType< bool, P > const &v)
Returns true if all components of x are true.
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 > not_(vecType< bool, P > const &v)
Returns the component-wise logical complement of x.
Definition: _noise.hpp:31
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.
OpenGL Mathematics (glm.g-truc.net)
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 > greaterThan(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 > equal(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 > greaterThanEqual(vecType< T, P > const &x, vecType< T, P > const &y)
Returns the component-wise comparison of result x >= y.