| 0.9.9 API documenation

- Main Page
- Modules
- Files

- File List

vector_relational.hpp
Go to the documentation of this file.
1
18 #pragma once
19
20 #include "detail/qualifier.hpp"
21 #include "detail/setup.hpp"
22
23 namespace glm
24 {
27
35 template<length_t L, typename T, qualifier Q>
36 GLM_FUNC_DECL vec<L, bool, Q> lessThan(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
37
45 template<length_t L, typename T, qualifier Q>
46 GLM_FUNC_DECL vec<L, bool, Q> lessThanEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
47
55 template<length_t L, typename T, qualifier Q>
56 GLM_FUNC_DECL vec<L, bool, Q> greaterThan(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
57
65 template<length_t L, typename T, qualifier Q>
66 GLM_FUNC_DECL vec<L, bool, Q> greaterThanEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
67
75 template<length_t L, typename T, qualifier Q>
76 GLM_FUNC_DECL vec<L, bool, Q> equal(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
77
85 template<length_t L, typename T, qualifier Q>
86 GLM_FUNC_DECL vec<L, bool, Q> notEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
87
94 template<length_t L, qualifier Q>
95 GLM_FUNC_DECL bool any(vec<L, bool, Q> const& v);
96
103 template<length_t L, qualifier Q>
104 GLM_FUNC_DECL bool all(vec<L, bool, Q> const& v);
105
113 template<length_t L, qualifier Q>
114 GLM_FUNC_DECL vec<L, bool, Q> not_(vec<L, bool, Q> const& v);
115
117 }//namespace glm
118
119 #include "detail/func_vector_relational.inl"
glm::greaterThan
GLM_FUNC_DECL vec< L, bool, Q > greaterThan(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
Returns the component-wise comparison of result x > y.
glm::notEqual
GLM_FUNC_DECL vec< L, bool, Q > notEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
Returns the component-wise comparison of result x != y.
glm::any
GLM_FUNC_DECL bool any(vec< L, bool, Q > const &v)
Returns true if any component of x is true.
glm::lessThan
GLM_FUNC_DECL vec< L, bool, Q > lessThan(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
Returns the component-wise comparison result of x < y.
qualifier.hpp
Core features
glm
Definition: common.hpp:20
glm::all
GLM_FUNC_DECL bool all(vec< L, bool, Q > const &v)
Returns true if all components of x are true.
glm::equal
GLM_FUNC_DECL vec< L, bool, Q > equal(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
Returns the component-wise comparison of result x == y.
glm::greaterThanEqual
GLM_FUNC_DECL vec< L, bool, Q > greaterThanEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
Returns the component-wise comparison of result x >= y.
setup.hpp
Core features
glm::lessThanEqual
GLM_FUNC_DECL vec< L, bool, Q > lessThanEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
Returns the component-wise comparison of result x <= y.
glm::not_
GLM_FUNC_DECL vec< L, bool, Q > not_(vec< L, bool, Q > const &v)
Returns the component-wise logical complement of x.