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