20 #ifndef GLM_ENABLE_EXPERIMENTAL
21 # error "GLM: GLM_GTX_vector_query is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
24 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
25 # pragma message("GLM: GLM_GTX_vector_query extension included")
35 template<length_t L,
typename T, qualifier P>
36 GLM_FUNC_DECL
bool areCollinear(vec<L, T, P>
const & v0, vec<L, T, P>
const & v1, T
const &
epsilon);
40 template<length_t L,
typename T, qualifier P>
41 GLM_FUNC_DECL
bool areOrthogonal(vec<L, T, P>
const & v0, vec<L, T, P>
const & v1, T
const &
epsilon);
45 template<length_t L,
typename T, qualifier P>
50 template<length_t L,
typename T, qualifier P>
51 GLM_FUNC_DECL
bool isNull(vec<L, T, P>
const & v, T
const &
epsilon);
55 template<length_t L,
typename T, qualifier P>
56 GLM_FUNC_DECL vec<L, bool, P>
isCompNull(vec<L, T, P>
const & v, T
const &
epsilon);
60 template<length_t L,
typename T, qualifier P>
61 GLM_FUNC_DECL
bool areOrthonormal(vec<L, T, P>
const & v0, vec<L, T, P>
const & v1, T
const &
epsilon);
66 #include "vector_query.inl"
GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
Return the epsilon constant for floating point types.
GLM_FUNC_DECL bool isNull(vec< L, T, P > const &v, T const &epsilon)
Check whether a vector is null.
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.
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.
GLM_FUNC_DECL bool isNormalized(vec< L, T, P > const &v, T const &epsilon)
Check whether a vector is normalized.
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.
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.