| 0.9.7

- Main Page
- Modules
- Files

- File List

matrix_query.hpp
Go to the documentation of this file.
1
43 #pragma once
44
45 // Dependency:
46 #include "../glm.hpp"
47 #include "../gtx/vector_query.hpp"
48 #include <limits>
49
50 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
51 # pragma message("GLM: GLM_GTX_matrix_query extension included")
52 #endif
53
54 namespace glm
55 {
58
61 template<typename T, precision P>
62 GLM_FUNC_DECL bool isNull(tmat2x2<T, P> const & m, T const & epsilon);
63
66 template<typename T, precision P>
67 GLM_FUNC_DECL bool isNull(tmat3x3<T, P> const & m, T const & epsilon);
68
71 template<typename T, precision P>
72 GLM_FUNC_DECL bool isNull(tmat4x4<T, P> const & m, T const & epsilon);
73
76 template<typename T, precision P, template <typename, precision> class matType>
77 GLM_FUNC_DECL bool isIdentity(matType<T, P> const & m, T const & epsilon);
78
81 template<typename T, precision P>
82 GLM_FUNC_DECL bool isNormalized(tmat2x2<T, P> const & m, T const & epsilon);
83
86 template<typename T, precision P>
87 GLM_FUNC_DECL bool isNormalized(tmat3x3<T, P> const & m, T const & epsilon);
88
91 template<typename T, precision P>
92 GLM_FUNC_DECL bool isNormalized(tmat4x4<T, P> const & m, T const & epsilon);
93
96 template<typename T, precision P, template <typename, precision> class matType>
97 GLM_FUNC_DECL bool isOrthogonal(matType<T, P> const & m, T const & epsilon);
98
100 }//namespace glm
101
102 #include "matrix_query.inl"
glm::isNull
GLM_FUNC_DECL bool isNull(tmat4x4< T, P > const &m, T const &epsilon)
Return whether a matrix is a null matrix.
glm::epsilon
GLM_FUNC_DECL genType epsilon()
Return the epsilon constant for floating point types.
glm
Definition: _noise.hpp:40
glm::isIdentity
GLM_FUNC_DECL bool isIdentity(matType< T, P > const &m, T const &epsilon)
Return whether a matrix is an identity matrix.
glm::isNormalized
GLM_FUNC_DECL bool isNormalized(tmat4x4< T, P > const &m, T const &epsilon)
Return whether a matrix is a normalized matrix.
glm::isOrthogonal
GLM_FUNC_DECL bool isOrthogonal(matType< T, P > const &m, T const &epsilon)
Return whether a matrix is an orthonormalized matrix.