Flow Visualisation
|
![]() |
Functions | |
template<typename vecType > | |
GLM_FUNC_DECL vecType::bool_type | glm::lessThan (vecType const &x, vecType const &y) |
template<typename vecType > | |
GLM_FUNC_DECL vecType::bool_type | glm::lessThanEqual (vecType const &x, vecType const &y) |
template<typename vecType > | |
GLM_FUNC_DECL vecType::bool_type | glm::greaterThan (vecType const &x, vecType const &y) |
template<typename vecType > | |
GLM_FUNC_DECL vecType::bool_type | glm::greaterThanEqual (vecType const &x, vecType const &y) |
template<typename vecType > | |
GLM_FUNC_DECL vecType::bool_type | glm::equal (vecType const &x, vecType const &y) |
template<typename vecType > | |
GLM_FUNC_DECL vecType::bool_type | glm::notEqual (vecType const &x, vecType const &y) |
template<template< typename > class vecType> | |
GLM_FUNC_DECL bool | glm::any (vecType< bool > const &v) |
template<template< typename > class vecType> | |
GLM_FUNC_DECL bool | glm::all (vecType< bool > const &v) |
template<template< typename > class vecType> | |
GLM_FUNC_DECL vecType< bool > | glm::not_ (vecType< bool > const &v) |
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 | ( | vecType< bool > const & | v | ) |
Returns true if all components of x are true.
vecType | Boolean vector types. |
GLM_FUNC_DECL bool glm::any | ( | vecType< bool > const & | v | ) |
Returns true if any component of x is true.
vecType | Boolean vector types. |
GLM_FUNC_DECL vecType::bool_type glm::equal | ( | vecType const & | x, |
vecType const & | y | ||
) |
Returns the component-wise comparison of result x == y.
vecType | Floating-point, integer or boolean vector types. |
GLM_FUNC_DECL vecType::bool_type glm::greaterThan | ( | vecType const & | x, |
vecType const & | y | ||
) |
Returns the component-wise comparison of result x > y.
vecType | Floating-point or integer vector types. |
GLM_FUNC_DECL vecType::bool_type glm::greaterThanEqual | ( | vecType const & | x, |
vecType const & | y | ||
) |
Returns the component-wise comparison of result x >= y.
vecType | Floating-point or integer vector types. |
GLM_FUNC_DECL vecType::bool_type glm::lessThan | ( | vecType const & | x, |
vecType const & | y | ||
) |
Returns the component-wise comparison result of x < y.
vecType | Floating-point or integer vector types. |
GLM_FUNC_DECL vecType::bool_type glm::lessThanEqual | ( | vecType const & | x, |
vecType const & | y | ||
) |
Returns the component-wise comparison of result x <= y.
vecType | Floating-point or integer vector types. |
GLM_FUNC_DECL vecType<bool> glm::not_ | ( | vecType< bool > 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.
vecType | Boolean vector types. |
GLM_FUNC_DECL vecType::bool_type glm::notEqual | ( | vecType const & | x, |
vecType const & | y | ||
) |
Returns the component-wise comparison of result x != y.
vecType | Floating-point, integer or boolean vector types. |