![]() |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 #ifndef GLM_GTX_matrix_query 00040 #define GLM_GTX_matrix_query GLM_VERSION 00041 00042 // Dependency: 00043 #include "../glm.hpp" 00044 #include "../gtx/vector_query.hpp" 00045 00046 #if(defined(GLM_MESSAGES) && !defined(glm_ext)) 00047 # pragma message("GLM: GLM_GTX_matrix_query extension included") 00048 #endif 00049 00050 namespace glm 00051 { 00054 00057 template<typename T> 00058 bool isNull( 00059 detail::tmat2x2<T> const & m, 00060 T const & epsilon = std::numeric_limits<T>::epsilon()); 00061 00064 template<typename T> 00065 bool isNull( 00066 detail::tmat3x3<T> const & m, 00067 T const & epsilon = std::numeric_limits<T>::epsilon()); 00068 00071 template<typename T> 00072 bool isNull( 00073 detail::tmat4x4<T> const & m, 00074 T const & epsilon = std::numeric_limits<T>::epsilon()); 00075 00078 template<typename genType> 00079 bool isIdentity( 00080 genType const & m, 00081 typename genType::value_type const & epsilon = std::numeric_limits<typename genType::value_type>::epsilon()); 00082 00085 template<typename T> 00086 bool isNormalized( 00087 detail::tmat2x2<T> const & m, 00088 T const & epsilon = std::numeric_limits<T>::epsilon()); 00089 00092 template<typename T> 00093 bool isNormalized( 00094 detail::tmat3x3<T> const & m, 00095 T const & epsilon = std::numeric_limits<T>::epsilon()); 00096 00099 template<typename T> 00100 bool isNormalized( 00101 detail::tmat4x4<T> const & m, 00102 T const & epsilon = std::numeric_limits<T>::epsilon()); 00103 00106 template<typename genType> 00107 bool isOrthogonal( 00108 genType const & m, 00109 typename genType::value_type const & epsilon = std::numeric_limits<typename genType::value_type>::epsilon()); 00110 00112 }//namespace glm 00113 00114 #include "matrix_query.inl" 00115 00116 #endif//GLM_GTX_matrix_query
1.7.3