GLM: matrix_query.hpp Source File

GLM 0.9.5

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

- File List

matrix_query.hpp
Go to the documentation of this file.
1
39 #ifndef GLM_GTX_matrix_query
40 #define GLM_GTX_matrix_query
41
42 // Dependency:
43 #include "../glm.hpp"
44 #include "../gtx/vector_query.hpp"
45 #include <limits>
46
47 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
48 # pragma message("GLM: GLM_GTX_matrix_query extension included")
49 #endif
50
51 namespace glm
52 {
55
58 template<typename T, precision P>
59 bool isNull(detail::tmat2x2<T, P> const & m, T const & epsilon);
60
63 template<typename T, precision P>
64 bool isNull(detail::tmat3x3<T, P> const & m, T const & epsilon);
65
68 template<typename T, precision P>
69 bool isNull(detail::tmat4x4<T, P> const & m, T const & epsilon);
70
73 template<typename T, precision P, template <typename, precision> class matType>
74 bool isIdentity(matType<T, P> const & m, T const & epsilon);
75
78 template<typename T, precision P>
79 bool isNormalized(detail::tmat2x2<T, P> const & m, T const & epsilon);
80
83 template<typename T, precision P>
84 bool isNormalized(detail::tmat3x3<T, P> const & m, T const & epsilon);
85
88 template<typename T, precision P>
89 bool isNormalized(detail::tmat4x4<T, P> const & m, T const & epsilon);
90
93 template<typename T, precision P, template <typename, precision> class matType>
94 bool isOrthogonal(matType<T, P> const & m, T const & epsilon);
95
97 }//namespace glm
98
99 #include "matrix_query.inl"
100
101 #endif//GLM_GTX_matrix_query
glm::epsilon
GLM_FUNC_DECL genType epsilon()
Return the epsilon constant for floating point types.
glm::isOrthogonal
bool isOrthogonal(matType< T, P > const &m, T const &epsilon)
Return whether a matrix is an orthonormalized matrix.
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::isIdentity
bool isIdentity(matType< T, P > const &m, T const &epsilon)
Return whether a matrix is an identity matrix.