GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

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::epsilon
GLM_FUNC_DECL genType epsilon()
Return the epsilon constant for floating point types.
glm::areOrthonormal
bool areOrthonormal(vecType< T, P > const &v0, vecType< T, P > const &v1, T const &epsilon)
Check whether two vectors are orthonormal.
glm::areOrthogonal
bool areOrthogonal(vecType< T, P > const &v0, vecType< T, P > const &v1, T const &epsilon)
Check whether two vectors are orthogonals.
glm::areCollinear
bool areCollinear(vecType< T, P > const &v0, vecType< T, P > const &v1, T const &epsilon)
Check whether two vectors are collinears.
glm::isNormalized
bool isNormalized(detail::tmat2x2< T, P > const &m, T const &epsilon)
Return whether a matrix is a normalized matrix.
glm::isNull
bool isNull(detail::tmat2x2< T, P > const &m, T const &epsilon)
Return whether a matrix a null matrix.
glm::isCompNull
vecType< bool, P > isCompNull(vecType< T, P > const &v, T const &epsilon)
Check whether a each component of a vector is null.