![]() |
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 50 00041 00042 // Dependency: 00043 #include "../glm.hpp" 00044 00045 #if(defined(GLM_MESSAGES) && !defined(glm_ext)) 00046 # pragma message("GLM: GLM_GTX_matrix_query extension included") 00047 #endif 00048 00049 namespace glm 00050 { 00053 00056 template<typename T> 00057 bool isNull( 00058 const detail::tmat2x2<T>& m, 00059 const T epsilon = std::numeric_limits<T>::epsilon()); 00060 00063 template<typename T> 00064 bool isNull( 00065 const detail::tmat3x3<T>& m, 00066 const T epsilon = std::numeric_limits<T>::epsilon()); 00067 00070 template<typename T> 00071 bool isNull( 00072 const detail::tmat4x4<T>& m, 00073 const T epsilon = std::numeric_limits<T>::epsilon()); 00074 00077 template<typename genType> 00078 bool isIdentity( 00079 const genType& m, 00080 const typename genType::value_type epsilon = std::numeric_limits<typename genType::value_type>::epsilon()); 00081 00084 template<typename T> 00085 bool isNormalized( 00086 const detail::tmat2x2<T>& m, 00087 const T epsilon = std::numeric_limits<T>::epsilon()); 00088 00091 template<typename T> 00092 bool isNormalized( 00093 const detail::tmat3x3<T>& m, 00094 const T epsilon = std::numeric_limits<T>::epsilon()); 00095 00098 template<typename T> 00099 bool isNormalized( 00100 const detail::tmat4x4<T>& m, 00101 const T epsilon = std::numeric_limits<T>::epsilon()); 00102 00105 template<typename genType> 00106 bool isOrthogonal( 00107 const genType& m, 00108 const typename genType::value_type epsilon = std::numeric_limits<typename genType::value_type>::epsilon()); 00109 00111 }//namespace glm 00112 00113 #include "matrix_query.inl" 00114 00115 #endif//GLM_GTX_matrix_query
1.7.4