0.9.9 API documentation
Functions
GLM_EXT_quaternion_relational

Functions

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

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]

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]

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]

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]

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