0.9.9 API documentation
Loading...
Searching...
No Matches
Functions
GLM_GTX_vector_query

Include <glm/gtx/vector_query.hpp> to use the features of this extension. More...

Functions

template<length_t L, typename T , qualifier Q>
GLM_FUNC_DECL bool areCollinear (vec< L, T, Q > const &v0, vec< L, T, Q > const &v1, T const &epsilon)
 Check whether two vectors are collinears.
 
template<length_t L, typename T , qualifier Q>
GLM_FUNC_DECL bool areOrthogonal (vec< L, T, Q > const &v0, vec< L, T, Q > const &v1, T const &epsilon)
 Check whether two vectors are orthogonals.
 
template<length_t L, typename T , qualifier Q>
GLM_FUNC_DECL bool areOrthonormal (vec< L, T, Q > const &v0, vec< L, T, Q > const &v1, T const &epsilon)
 Check whether two vectors are orthonormal.
 
template<length_t L, typename T , qualifier Q>
GLM_FUNC_DECL vec< L, bool, Q > isCompNull (vec< L, T, Q > const &v, T const &epsilon)
 Check whether a each component of a vector is null.
 
template<length_t L, typename T , qualifier Q>
GLM_FUNC_DECL bool isNormalized (vec< L, T, Q > const &v, T const &epsilon)
 Check whether a vector is normalized.
 
template<length_t L, typename T , qualifier Q>
GLM_FUNC_DECL bool isNull (vec< L, T, Q > const &v, T const &epsilon)
 Check whether a vector is null.
 

Detailed Description

Include <glm/gtx/vector_query.hpp> to use the features of this extension.

Query informations of vector types

Function Documentation

◆ areCollinear()

template<length_t L, typename T , qualifier Q>
GLM_FUNC_DECL bool areCollinear ( vec< L, T, Q > const &  v0,
vec< L, T, Q > const &  v1,
T const &  epsilon 
)

Check whether two vectors are collinears.

See also
GLM_GTX_vector_query extensions.

◆ areOrthogonal()

template<length_t L, typename T , qualifier Q>
GLM_FUNC_DECL bool areOrthogonal ( vec< L, T, Q > const &  v0,
vec< L, T, Q > const &  v1,
T const &  epsilon 
)

Check whether two vectors are orthogonals.

See also
GLM_GTX_vector_query extensions.

◆ areOrthonormal()

template<length_t L, typename T , qualifier Q>
GLM_FUNC_DECL bool areOrthonormal ( vec< L, T, Q > const &  v0,
vec< L, T, Q > const &  v1,
T const &  epsilon 
)

Check whether two vectors are orthonormal.

See also
GLM_GTX_vector_query extensions.

◆ isCompNull()

template<length_t L, typename T , qualifier Q>
GLM_FUNC_DECL vec< L, bool, Q > isCompNull ( vec< L, T, Q > const &  v,
T const &  epsilon 
)

Check whether a each component of a vector is null.

See also
GLM_GTX_vector_query extensions.

◆ isNormalized()

template<length_t L, typename T , qualifier Q>
GLM_FUNC_DECL bool isNormalized ( vec< L, T, Q > const &  v,
T const &  epsilon 
)

Check whether a vector is normalized.

See also
GLM_GTX_vector_query extensions.

◆ isNull()

template<length_t L, typename T , qualifier Q>
GLM_FUNC_DECL bool isNull ( vec< L, T, Q > const &  v,
T const &  epsilon 
)

Check whether a vector is null.

See also
GLM_GTX_vector_query extensions.