FlukyEngine
Functions
GLM_EXT_quaternion_relational

Exposes comparison functions for quaternion types that take a user defined epsilon values. More...

Collaboration diagram for GLM_EXT_quaternion_relational:

Functions

template<typename T , qualifier Q>
GLM_FUNC_DECL vec< 4, bool, Q > glm::equal (qua< T, Q > const &x, qua< T, Q > const &y)
 Returns the component-wise comparison of result x == y. More...
 
template<typename T , qualifier Q>
GLM_FUNC_DECL vec< 4, bool, Q > glm::equal (qua< T, Q > const &x, qua< T, Q > const &y, T epsilon)
 Returns the component-wise comparison of |x - y| < epsilon. More...
 
template<typename T , qualifier Q>
GLM_FUNC_DECL vec< 4, bool, Q > glm::notEqual (qua< T, Q > const &x, qua< T, Q > const &y)
 Returns the component-wise comparison of result x != y. More...
 
template<typename T , qualifier Q>
GLM_FUNC_DECL vec< 4, bool, Q > glm::notEqual (qua< T, Q > const &x, qua< T, Q > const &y, T epsilon)
 Returns the component-wise comparison of |x - y| >= epsilon. More...
 

Detailed Description

Exposes comparison functions for quaternion types that take a user defined epsilon values.

Include <glm/ext/quaternion_relational.hpp> to use the features of this extension.

See also
core_vector_relational
GLM_EXT_vector_relational
GLM_EXT_matrix_relational
GLM_EXT_quaternion_float
GLM_EXT_quaternion_double

Function Documentation

◆ equal() [1/2]

template<typename T , qualifier Q>
GLM_FUNC_DECL vec<4, bool, Q> glm::equal ( qua< T, Q > const &  x,
qua< T, Q > const &  y 
)

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

Template Parameters
TFloating-point scalar types
QValue from qualifier enum

◆ equal() [2/2]

template<typename T , qualifier Q>
GLM_FUNC_DECL vec<4, bool, Q> glm::equal ( qua< T, Q > const &  x,
qua< T, Q > const &  y,
epsilon 
)

Returns the component-wise comparison of |x - y| < epsilon.

Template Parameters
TFloating-point scalar types
QValue from qualifier enum

◆ notEqual() [1/2]

template<typename T , qualifier Q>
GLM_FUNC_DECL vec<4, bool, Q> glm::notEqual ( qua< T, Q > const &  x,
qua< T, Q > const &  y 
)

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

Template Parameters
TFloating-point scalar types
QValue from qualifier enum

◆ notEqual() [2/2]

template<typename T , qualifier Q>
GLM_FUNC_DECL vec<4, bool, Q> glm::notEqual ( qua< T, Q > const &  x,
qua< T, Q > const &  y,
epsilon 
)

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

Template Parameters
TFloating-point scalar types
QValue from qualifier enum