GLM  0.9.5
vector_query.hpp
Go to the documentation of this file.
1 
38 #ifndef GLM_GTX_vector_query
39 #define GLM_GTX_vector_query
40 
41 // Dependency:
42 #include "../glm.hpp"
43 #include <cfloat>
44 #include <limits>
45 
46 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
47 # pragma message("GLM: GLM_GTX_vector_query extension included")
48 #endif
49 
50 namespace glm
51 {
54 
57  template <typename T, precision P, template <typename, precision> class vecType>
58  bool areCollinear(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon);
59 
62  template <typename T, precision P, template <typename, precision> class vecType>
63  bool areOrthogonal(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon);
64 
67  template <typename T, precision P, template <typename, precision> class vecType>
68  bool isNormalized(vecType<T, P> const & v, T const & epsilon);
69 
72  template <typename T, precision P, template <typename, precision> class vecType>
73  bool isNull(vecType<T, P> const & v, T const & epsilon);
74 
77  template <typename T, precision P, template <typename, precision> class vecType>
78  vecType<bool, P> isCompNull(vecType<T, P> const & v, T const & epsilon);
79 
82  template <typename T, precision P, template <typename, precision> class vecType>
83  bool areOrthonormal(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon);
84 
86 }// namespace glm
87 
88 #include "vector_query.inl"
89 
90 #endif//GLM_GTX_vector_query
GLM_FUNC_DECL genType epsilon()
Return the epsilon constant for floating point types.
bool areOrthonormal(vecType< T, P > const &v0, vecType< T, P > const &v1, T const &epsilon)
Check whether two vectors are orthonormal.
bool areOrthogonal(vecType< T, P > const &v0, vecType< T, P > const &v1, T const &epsilon)
Check whether two vectors are orthogonals.
bool areCollinear(vecType< T, P > const &v0, vecType< T, P > const &v1, T const &epsilon)
Check whether two vectors are collinears.
bool isNormalized(detail::tmat2x2< T, P > const &m, T const &epsilon)
Return whether a matrix is a normalized matrix.
bool isNull(detail::tmat2x2< T, P > const &m, T const &epsilon)
Return whether a matrix a null matrix.
vecType< bool, P > isCompNull(vecType< T, P > const &v, T const &epsilon)
Check whether a each component of a vector is null.