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 genType>
58 bool areCollinear(
59 genType const & v0,
60 genType const & v1,
61 typename genType::T const & epsilon);
62
65 template <typename genType>
66 bool areOrthogonal(
67 genType const & v0,
68 genType const & v1,
69 typename genType::T const & epsilon);
70
73 template <typename genType, precision P, template <typename, precision> class vecType>
74 bool isNormalized(
75 vecType<genType, P> const & v,
76 genType const & epsilon);
77
80 template <typename T, precision P>
81 bool isNull(
82 detail::tvec2<T, P> const & v,
83 T const & epsilon);
84
87 template <typename T, precision P>
88 bool isNull(
89 detail::tvec3<T, P> const & v,
90 T const & epsilon);
91
94 template <typename T, precision P>
95 bool isNull(
96 detail::tvec4<T, P> const & v,
97 T const & epsilon);
98
101 template <typename genType>
102 bool areOrthonormal(
103 genType const & v0,
104 genType const & v1,
105 typename genType::T const & epsilon);
106
108 }// namespace glm
109
110 #include "vector_query.inl"
111
112 #endif//GLM_GTX_vector_query
glm::epsilon
GLM_FUNC_DECL genType epsilon()
Return the epsilon constant for floating point types.
glm::isNormalized
bool isNormalized(detail::tmat2x2< T, P > const &m, T const &epsilon)
Return whether a matrix is a normalized matrix.
glm::areOrthogonal
bool areOrthogonal(genType const &v0, genType const &v1, typename genType::T const &epsilon)
Check whether two vectors are orthogonals.
glm::isNull
bool isNull(detail::tmat2x2< T, P > const &m, T const &epsilon)
Return whether a matrix a null matrix.
glm::areCollinear
bool areCollinear(genType const &v0, genType const &v1, typename genType::T const &epsilon)
Check whether two vectors are collinears.
glm::areOrthonormal
bool areOrthonormal(genType const &v0, genType const &v1, typename genType::T const &epsilon)
Check whether two vectors are orthonormal.