|
|
@@ -42,6 +42,7 @@
|
|
|
// Dependency:
|
|
|
#include "../glm.hpp"
|
|
|
#include "../gtx/vector_query.hpp"
|
|
|
+#include <limits>
|
|
|
|
|
|
#if(defined(GLM_MESSAGES) && !defined(glm_ext))
|
|
|
# pragma message("GLM: GLM_GTX_matrix_query extension included")
|
|
|
@@ -52,61 +53,61 @@ namespace glm
|
|
|
/// @addtogroup gtx_matrix_query
|
|
|
/// @{
|
|
|
|
|
|
- //! Return if a matrix a null matrix.
|
|
|
- //! From GLM_GTX_matrix_query extension.
|
|
|
+ /// Return whether a matrix a null matrix.
|
|
|
+ /// From GLM_GTX_matrix_query extension.
|
|
|
template<typename T>
|
|
|
bool isNull(
|
|
|
detail::tmat2x2<T> const & m,
|
|
|
- T const & epsilon = std::numeric_limits<T>::epsilon());
|
|
|
+ T const & epsilon/* = std::numeric_limits<T>::epsilon()*/);
|
|
|
|
|
|
- //! Return if a matrix a null matrix.
|
|
|
- //! From GLM_GTX_matrix_query extension.
|
|
|
+ /// Return whether a matrix a null matrix.
|
|
|
+ /// From GLM_GTX_matrix_query extension.
|
|
|
template<typename T>
|
|
|
bool isNull(
|
|
|
detail::tmat3x3<T> const & m,
|
|
|
- T const & epsilon = std::numeric_limits<T>::epsilon());
|
|
|
+ T const & epsilon/* = std::numeric_limits<T>::epsilon()*/);
|
|
|
|
|
|
- //! Return if a matrix a null matrix.
|
|
|
- //! From GLM_GTX_matrix_query extension.
|
|
|
+ /// Return whether a matrix is a null matrix.
|
|
|
+ /// From GLM_GTX_matrix_query extension.
|
|
|
template<typename T>
|
|
|
bool isNull(
|
|
|
detail::tmat4x4<T> const & m,
|
|
|
- T const & epsilon = std::numeric_limits<T>::epsilon());
|
|
|
+ T const & epsilon/* = std::numeric_limits<T>::epsilon()*/);
|
|
|
|
|
|
- //! Return if a matrix an identity matrix.
|
|
|
- //! From GLM_GTX_matrix_query extension.
|
|
|
+ /// Return whether a matrix is an identity matrix.
|
|
|
+ /// From GLM_GTX_matrix_query extension.
|
|
|
template<typename genType>
|
|
|
bool isIdentity(
|
|
|
genType const & m,
|
|
|
- typename genType::value_type const & epsilon = std::numeric_limits<typename genType::value_type>::epsilon());
|
|
|
+ typename genType::value_type const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
|
|
|
|
|
|
- //! Return if a matrix a normalized matrix.
|
|
|
- //! From GLM_GTX_matrix_query extension.
|
|
|
- template<typename T>
|
|
|
+ /// Return whether a matrix is a normalized matrix.
|
|
|
+ /// From GLM_GTX_matrix_query extension.
|
|
|
+ template<typename valType>
|
|
|
bool isNormalized(
|
|
|
- detail::tmat2x2<T> const & m,
|
|
|
- T const & epsilon = std::numeric_limits<T>::epsilon());
|
|
|
-
|
|
|
- //! Return if a matrix a normalized matrix.
|
|
|
- //! From GLM_GTX_matrix_query extension.
|
|
|
- template<typename T>
|
|
|
+ detail::tmat2x2<valType> const & m,
|
|
|
+ valType const & epsilon/* = std::numeric_limits<valType>::epsilon()*/);
|
|
|
+
|
|
|
+ /// Return whether a matrix is a normalized matrix.
|
|
|
+ /// From GLM_GTX_matrix_query extension.
|
|
|
+ template<typename valType>
|
|
|
bool isNormalized(
|
|
|
- detail::tmat3x3<T> const & m,
|
|
|
- T const & epsilon = std::numeric_limits<T>::epsilon());
|
|
|
-
|
|
|
- //! Return if a matrix a normalized matrix.
|
|
|
- //! From GLM_GTX_matrix_query extension.
|
|
|
- template<typename T>
|
|
|
+ detail::tmat3x3<valType> const & m,
|
|
|
+ valType const & epsilon/* = std::numeric_limits<valType>::epsilon()*/);
|
|
|
+
|
|
|
+ /// Return whether a matrix is a normalized matrix.
|
|
|
+ /// From GLM_GTX_matrix_query extension.
|
|
|
+ template<typename valType>
|
|
|
bool isNormalized(
|
|
|
- detail::tmat4x4<T> const & m,
|
|
|
- T const & epsilon = std::numeric_limits<T>::epsilon());
|
|
|
+ detail::tmat4x4<valType> const & m,
|
|
|
+ valType const & epsilon/* = std::numeric_limits<valType>::epsilon()*/);
|
|
|
|
|
|
- //! Return if a matrix an orthonormalized matrix.
|
|
|
- //! From GLM_GTX_matrix_query extension.
|
|
|
- template<typename genType>
|
|
|
+ /// Return whether a matrix is an orthonormalized matrix.
|
|
|
+ /// From GLM_GTX_matrix_query extension.
|
|
|
+ template<typename valType, template <typename> class matType>
|
|
|
bool isOrthogonal(
|
|
|
- genType const & m,
|
|
|
- typename genType::value_type const & epsilon = std::numeric_limits<typename genType::value_type>::epsilon());
|
|
|
+ matType<valType> const & m,
|
|
|
+ valType const & epsilon/* = std::numeric_limits<genType>::epsilon()*/);
|
|
|
|
|
|
/// @}
|
|
|
}//namespace glm
|