GLM  0.9.5
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(
60  detail::tmat2x2<T, P> const & m,
61  T const & epsilon/* = std::numeric_limits<T>::epsilon()*/);
62 
65  template<typename T, precision P>
66  bool isNull(
67  detail::tmat3x3<T, P> const & m,
68  T const & epsilon/* = std::numeric_limits<T>::epsilon()*/);
69 
72  template<typename T, precision P>
73  bool isNull(
74  detail::tmat4x4<T, P> const & m,
75  T const & epsilon/* = std::numeric_limits<T>::epsilon()*/);
76 
79  template<typename genType>
80  bool isIdentity(
81  genType const & m,
82  typename genType::T const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
83 
86  template<typename T, precision P>
87  bool isNormalized(
88  detail::tmat2x2<T, P> const & m,
89  T const & epsilon/* = std::numeric_limits<T>::epsilon()*/);
90 
93  template<typename T, precision P>
94  bool isNormalized(
95  detail::tmat3x3<T, P> const & m,
96  T const & epsilon/* = std::numeric_limits<valType>::epsilon()*/);
97 
100  template<typename T, precision P>
101  bool isNormalized(
102  detail::tmat4x4<T, P> const & m,
103  T const & epsilon/* = std::numeric_limits<valType>::epsilon()*/);
104 
107  template<typename T, precision P, template <typename, precision> class matType>
108  bool isOrthogonal(
109  matType<T, P> const & m,
110  T const & epsilon/* = std::numeric_limits<genType>::epsilon()*/);
111 
113 }//namespace glm
114 
115 #include "matrix_query.inl"
116 
117 #endif//GLM_GTX_matrix_query
bool isIdentity(genType const &m, typename genType::T const &epsilon)
Return whether a matrix is an identity matrix.
GLM_FUNC_DECL genType epsilon()
Return the epsilon constant for floating point types.
bool isOrthogonal(matType< T, P > const &m, T const &epsilon)
Return whether a matrix is an orthonormalized matrix.
bool isNormalized(detail::tmat2x2< T, P > const &m, T const &epsilon)
Return whether a matrix is a normalized matrix.
bool isNull(detail::tmat2x2< T, P > const &m, T const &epsilon)
Return whether a matrix a null matrix.