Flow Visualisation
matrix_query.hpp
Go to the documentation of this file.
1 
39 #ifndef GLM_GTX_matrix_query
40 #define GLM_GTX_matrix_query GLM_VERSION
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))
48 # pragma message("GLM: GLM_GTX_matrix_query extension included")
49 #endif
50 
51 namespace glm
52 {
55 
58  template<typename T>
59  bool isNull(
60  detail::tmat2x2<T> const & m,
61  T const & epsilon/* = std::numeric_limits<T>::epsilon()*/);
62 
65  template<typename T>
66  bool isNull(
67  detail::tmat3x3<T> const & m,
68  T const & epsilon/* = std::numeric_limits<T>::epsilon()*/);
69 
72  template<typename T>
73  bool isNull(
74  detail::tmat4x4<T> 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::value_type const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
83 
86  template<typename valType>
87  bool isNormalized(
88  detail::tmat2x2<valType> const & m,
89  valType const & epsilon/* = std::numeric_limits<valType>::epsilon()*/);
90 
93  template<typename valType>
94  bool isNormalized(
95  detail::tmat3x3<valType> const & m,
96  valType const & epsilon/* = std::numeric_limits<valType>::epsilon()*/);
97 
100  template<typename valType>
101  bool isNormalized(
102  detail::tmat4x4<valType> const & m,
103  valType const & epsilon/* = std::numeric_limits<valType>::epsilon()*/);
104 
107  template<typename valType, template <typename> class matType>
108  bool isOrthogonal(
109  matType<valType> const & m,
110  valType 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 isNormalized(detail::tmat2x2< valType > const &m, valType const &epsilon)
bool isNull(detail::tmat2x2< T > const &m, T const &epsilon)
Definition: matrix_query.inl:17
Definition: _detail.hpp:38
bool isIdentity(genType const &m, typename genType::value_type const &epsilon)
Definition: matrix_query.inl:55
Definition: _swizzle.hpp:43
GLM_FUNC_DECL genType epsilon()
Definition: constants.inl:32
bool isOrthogonal(matType< valType > const &m, valType const &epsilon)