0.9.9 API documenation
|
Relational and equality operators (<, <=, >, >=, ==, !=) are defined to operate on scalars and produce scalar Boolean results. More...
Functions | |
template<length_t L, qualifier P> | |
GLM_FUNC_DECL bool | all (vec< L, bool, P > const &v) |
Returns true if all components of x are true. More... | |
template<length_t L, qualifier P> | |
GLM_FUNC_DECL bool | any (vec< L, bool, P > const &v) |
Returns true if any component of x is true. More... | |
template<length_t L, typename T , qualifier P> | |
GLM_FUNC_DECL vec< L, bool, P > | equal (vec< L, T, P > const &x, vec< L, T, P > const &y) |
Returns the component-wise comparison of result x == y. More... | |
template<length_t L, typename T , qualifier P> | |
GLM_FUNC_DECL vec< L, bool, P > | greaterThan (vec< L, T, P > const &x, vec< L, T, P > const &y) |
Returns the component-wise comparison of result x > y. More... | |
template<length_t L, typename T , qualifier P> | |
GLM_FUNC_DECL vec< L, bool, P > | greaterThanEqual (vec< L, T, P > const &x, vec< L, T, P > const &y) |
Returns the component-wise comparison of result x >= y. More... | |
template<length_t L, typename T , qualifier P> | |
GLM_FUNC_DECL vec< L, bool, P > | lessThan (vec< L, T, P > const &x, vec< L, T, P > const &y) |
Returns the component-wise comparison result of x < y. More... | |
template<length_t L, typename T , qualifier P> | |
GLM_FUNC_DECL vec< L, bool, P > | lessThanEqual (vec< L, T, P > const &x, vec< L, T, P > const &y) |
Returns the component-wise comparison of result x <= y. More... | |
template<length_t L, qualifier P> | |
GLM_FUNC_DECL vec< L, bool, P > | not_ (vec< L, bool, P > const &v) |
Returns the component-wise logical complement of x. More... | |
template<length_t L, typename T , qualifier P> | |
GLM_FUNC_DECL vec< L, bool, P > | notEqual (vec< L, T, P > const &x, vec< L, T, P > const &y) |
Returns the component-wise comparison of result x != y. More... | |
Relational and equality operators (<, <=, >, >=, ==, !=) are defined to operate on scalars and produce scalar Boolean results.
For vector results, use the following built-in functions.
In all cases, the sizes of all the input and return vectors for any particular call must match.
GLM_FUNC_DECL bool glm::all | ( | vec< L, bool, P > const & | v | ) |
Returns true if all components of x are true.
L | An integer between 1 and 4 included that qualify the dimension of the vector. |
GLM_FUNC_DECL bool glm::any | ( | vec< L, bool, P > const & | v | ) |
Returns true if any component of x is true.
L | An integer between 1 and 4 included that qualify the dimension of the vector. |
GLM_FUNC_DECL vec<L, bool, P> glm::equal | ( | vec< L, T, P > const & | x, |
vec< L, T, P > const & | y | ||
) |
Returns the component-wise comparison of result x == y.
L | An integer between 1 and 4 included that qualify the dimension of the vector. |
T | A floating-point, integer or bool scalar type. |
GLM_FUNC_DECL vec<L, bool, P> glm::greaterThan | ( | vec< L, T, P > const & | x, |
vec< L, T, P > const & | y | ||
) |
Returns the component-wise comparison of result x > y.
L | An integer between 1 and 4 included that qualify the dimension of the vector. |
T | A floating-point or integer scalar type. |
GLM_FUNC_DECL vec<L, bool, P> glm::greaterThanEqual | ( | vec< L, T, P > const & | x, |
vec< L, T, P > const & | y | ||
) |
Returns the component-wise comparison of result x >= y.
L | An integer between 1 and 4 included that qualify the dimension of the vector. |
T | A floating-point or integer scalar type. |
GLM_FUNC_DECL vec<L, bool, P> glm::lessThan | ( | vec< L, T, P > const & | x, |
vec< L, T, P > const & | y | ||
) |
Returns the component-wise comparison result of x < y.
L | An integer between 1 and 4 included that qualify the dimension of the vector. |
T | A floating-point or integer scalar type. |
GLM_FUNC_DECL vec<L, bool, P> glm::lessThanEqual | ( | vec< L, T, P > const & | x, |
vec< L, T, P > const & | y | ||
) |
Returns the component-wise comparison of result x <= y.
L | An integer between 1 and 4 included that qualify the dimension of the vector. |
T | A floating-point or integer scalar type. |
GLM_FUNC_DECL vec<L, bool, P> glm::not_ | ( | vec< L, bool, P > const & | v | ) |
Returns the component-wise logical complement of x.
/!\ Because of language incompatibilities between C++ and GLSL, GLM defines the function not but not_ instead.
L | An integer between 1 and 4 included that qualify the dimension of the vector. |
GLM_FUNC_DECL vec<L, bool, P> glm::notEqual | ( | vec< L, T, P > const & | x, |
vec< L, T, P > const & | y | ||
) |
Returns the component-wise comparison of result x != y.
L | An integer between 1 and 4 included that qualify the dimension of the vector. |
T | A floating-point, integer or bool scalar type. |