0.9.6
vector_query.hpp
Go to the documentation of this file.
1 
42 #pragma once
43 
44 // Dependency:
45 #include "../glm.hpp"
46 #include <cfloat>
47 #include <limits>
48 
49 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
50 # pragma message("GLM: GLM_GTX_vector_query extension included")
51 #endif
52 
53 namespace glm
54 {
57 
60  template <typename T, precision P, template <typename, precision> class vecType>
61  GLM_FUNC_DECL bool areCollinear(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon);
62 
65  template <typename T, precision P, template <typename, precision> class vecType>
66  GLM_FUNC_DECL bool areOrthogonal(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon);
67 
70  template <typename T, precision P, template <typename, precision> class vecType>
71  GLM_FUNC_DECL bool isNormalized(vecType<T, P> const & v, T const & epsilon);
72 
75  template <typename T, precision P, template <typename, precision> class vecType>
76  GLM_FUNC_DECL bool isNull(vecType<T, P> const & v, T const & epsilon);
77 
80  template <typename T, precision P, template <typename, precision> class vecType>
81  GLM_FUNC_DECL vecType<bool, P> isCompNull(vecType<T, P> const & v, T const & epsilon);
82 
85  template <typename T, precision P, template <typename, precision> class vecType>
86  GLM_FUNC_DECL bool areOrthonormal(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon);
87 
89 }// namespace glm
90 
91 #include "vector_query.inl"
GLM_FUNC_DECL bool isNormalized(vecType< T, P > const &v, T const &epsilon)
Check whether a vector is normalized.
GLM_FUNC_DECL bool areOrthonormal(vecType< T, P > const &v0, vecType< T, P > const &v1, T const &epsilon)
Check whether two vectors are orthonormal.
GLM_FUNC_DECL bool areOrthogonal(vecType< T, P > const &v0, vecType< T, P > const &v1, T const &epsilon)
Check whether two vectors are orthogonals.
GLM_FUNC_DECL vecType< bool, P > isCompNull(vecType< T, P > const &v, T const &epsilon)
Check whether a each component of a vector is null.
GLM_FUNC_DECL bool areCollinear(vecType< T, P > const &v0, vecType< T, P > const &v1, T const &epsilon)
Check whether two vectors are collinears.
Definition: _noise.hpp:39
GLM_FUNC_DECL bool isNull(vecType< T, P > const &v, T const &epsilon)
Check whether a vector is null.
GLM_FUNC_DECL genType epsilon()
Return the epsilon constant for floating point types.