0.9.9 API documenation
Functions
GLM_GTX_vector_query

Query informations of vector types. More...

Functions

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

Detailed Description

Query informations of vector types.

<glm/gtx/vector_query.hpp> need to be included to use these functionalities.

Function Documentation

GLM_FUNC_DECL bool glm::areCollinear ( vec< L, T, P > const &  v0,
vec< L, T, P > const &  v1,
T const &  epsilon 
)

Check whether two vectors are collinears.

See also
GLM_GTX_vector_query extensions.
GLM_FUNC_DECL bool glm::areOrthogonal ( vec< L, T, P > const &  v0,
vec< L, T, P > const &  v1,
T const &  epsilon 
)

Check whether two vectors are orthogonals.

See also
GLM_GTX_vector_query extensions.
GLM_FUNC_DECL bool glm::areOrthonormal ( vec< L, T, P > const &  v0,
vec< L, T, P > const &  v1,
T const &  epsilon 
)

Check whether two vectors are orthonormal.

See also
GLM_GTX_vector_query extensions.
GLM_FUNC_DECL vec<L, bool, P> glm::isCompNull ( vec< L, T, P > const &  v,
T const &  epsilon 
)

Check whether a each component of a vector is null.

See also
GLM_GTX_vector_query extensions.
GLM_FUNC_DECL bool glm::isNormalized ( vec< L, T, P > const &  v,
T const &  epsilon 
)

Check whether a vector is normalized.

See also
GLM_GTX_vector_query extensions.
GLM_FUNC_DECL bool glm::isNull ( vec< L, T, P > const &  v,
T const &  epsilon 
)

Check whether a vector is null.

See also
GLM_GTX_vector_query extensions.