PSMoveService
Functions
Vector Relational Functions

Relational and equality operators (<, <=, >, >=, ==, !=) are defined to operate on scalars and produce scalar Boolean results. More...

Functions

template<typename vecType >
vecType::bool_type glm::lessThan (vecType const &x, vecType const &y)
 Returns the component-wise comparison result of x < y. More...
 
template<typename vecType >
vecType::bool_type glm::lessThanEqual (vecType const &x, vecType const &y)
 Returns the component-wise comparison of result x <= y. More...
 
template<typename vecType >
vecType::bool_type glm::greaterThan (vecType const &x, vecType const &y)
 Returns the component-wise comparison of result x > y. More...
 
template<typename vecType >
vecType::bool_type glm::greaterThanEqual (vecType const &x, vecType const &y)
 Returns the component-wise comparison of result x >= y. More...
 
template<typename vecType >
vecType::bool_type glm::equal (vecType const &x, vecType const &y)
 Returns the component-wise comparison of result x == y. More...
 
template<typename vecType >
vecType::bool_type glm::notEqual (vecType const &x, vecType const &y)
 Returns the component-wise comparison of result x != y. More...
 
template<template< typename > class vecType>
bool glm::any (vecType< bool > const &v)
 Returns true if any component of x is true. More...
 
template<template< typename > class vecType>
bool glm::all (vecType< bool > const &v)
 Returns true if all components of x are true. More...
 
template<template< typename > class vecType>
vecType< bool > glm::not_ (vecType< bool > const &v)
 Returns the component-wise logical complement of x. More...
 

Detailed Description

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.

Function Documentation

§ all()

template<template< typename > class vecType>
bool glm::all ( vecType< bool > const &  v)

Returns true if all components of x are true.

Template Parameters
vecTypeBoolean vector types.
See also
GLSL all man page
GLSL 4.20.8 specification, section 8.7 Vector Relational Functions

§ any()

template<template< typename > class vecType>
bool glm::any ( vecType< bool > const &  v)

Returns true if any component of x is true.

Template Parameters
vecTypeBoolean vector types.
See also
GLSL any man page
GLSL 4.20.8 specification, section 8.7 Vector Relational Functions

§ equal()

template<typename vecType >
vecType::bool_type glm::equal ( vecType const &  x,
vecType const &  y 
)

Returns the component-wise comparison of result x == y.

Template Parameters
vecTypeFloating-point, integer or boolean vector types.
See also
GLSL equal man page
GLSL 4.20.8 specification, section 8.7 Vector Relational Functions

§ greaterThan()

template<typename vecType >
vecType::bool_type glm::greaterThan ( vecType const &  x,
vecType const &  y 
)

Returns the component-wise comparison of result x > y.

Template Parameters
vecTypeFloating-point or integer vector types.
See also
GLSL greaterThan man page
GLSL 4.20.8 specification, section 8.7 Vector Relational Functions

§ greaterThanEqual()

template<typename vecType >
vecType::bool_type glm::greaterThanEqual ( vecType const &  x,
vecType const &  y 
)

Returns the component-wise comparison of result x >= y.

Template Parameters
vecTypeFloating-point or integer vector types.
See also
GLSL greaterThanEqual man page
GLSL 4.20.8 specification, section 8.7 Vector Relational Functions

§ lessThan()

template<typename vecType >
vecType::bool_type glm::lessThan ( vecType const &  x,
vecType const &  y 
)

Returns the component-wise comparison result of x < y.

Template Parameters
vecTypeFloating-point or integer vector types.
See also
GLSL lessThan man page
GLSL 4.20.8 specification, section 8.7 Vector Relational Functions

§ lessThanEqual()

template<typename vecType >
vecType::bool_type glm::lessThanEqual ( vecType const &  x,
vecType const &  y 
)

Returns the component-wise comparison of result x <= y.

Template Parameters
vecTypeFloating-point or integer vector types.
See also
GLSL lessThanEqual man page
GLSL 4.20.8 specification, section 8.7 Vector Relational Functions

§ not_()

template<template< typename > class vecType>
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.

Template Parameters
vecTypeBoolean vector types.
See also
GLSL not man page
GLSL 4.20.8 specification, section 8.7 Vector Relational Functions

§ notEqual()

template<typename vecType >
vecType::bool_type glm::notEqual ( vecType const &  x,
vecType const &  y 
)

Returns the component-wise comparison of result x != y.

Template Parameters
vecTypeFloating-point, integer or boolean vector types.
See also
GLSL notEqual man page
GLSL 4.20.8 specification, section 8.7 Vector Relational Functions