mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-05 22:02:38 +00:00
Add glm 0.9.2
This commit is contained in:
parent
21545e1a24
commit
c4b531ed5e
218 changed files with 46187 additions and 0 deletions
95
ExternalLibs/glm/gtx/matrix_query.hpp
Normal file
95
ExternalLibs/glm/gtx/matrix_query.hpp
Normal file
|
@ -0,0 +1,95 @@
|
|||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2007-03-05
|
||||
// Updated : 2007-03-05
|
||||
// Licence : This source is under MIT License
|
||||
// File : glm/gtx/matrix_query.hpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Dependency:
|
||||
// - GLM core
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef glm_gtx_matrix_query
|
||||
#define glm_gtx_matrix_query
|
||||
|
||||
// Dependency:
|
||||
#include "../glm.hpp"
|
||||
|
||||
#if(defined(GLM_MESSAGES) && !defined(glm_ext))
|
||||
# pragma message("GLM: GLM_GTX_matrix_query extension included")
|
||||
#endif
|
||||
|
||||
namespace glm{
|
||||
namespace gtx{
|
||||
namespace matrix_query ///< GLM_GTX_matrix_query: Query to evaluate matrix properties
|
||||
{
|
||||
/// \addtogroup gtx_matrix_query
|
||||
/// @{
|
||||
|
||||
//! Return if a matrix a null matrix.
|
||||
//! From GLM_GTX_matrix_query extension.
|
||||
template<typename T>
|
||||
bool isNull(
|
||||
const detail::tmat2x2<T>& m,
|
||||
const T epsilon = std::numeric_limits<T>::epsilon());
|
||||
|
||||
//! Return if a matrix a null matrix.
|
||||
//! From GLM_GTX_matrix_query extension.
|
||||
template<typename T>
|
||||
bool isNull(
|
||||
const detail::tmat3x3<T>& m,
|
||||
const T epsilon = std::numeric_limits<T>::epsilon());
|
||||
|
||||
//! Return if a matrix a null matrix.
|
||||
//! From GLM_GTX_matrix_query extension.
|
||||
template<typename T>
|
||||
bool isNull(
|
||||
const detail::tmat4x4<T>& m,
|
||||
const T epsilon = std::numeric_limits<T>::epsilon());
|
||||
|
||||
//! Return if a matrix an identity matrix.
|
||||
//! From GLM_GTX_matrix_query extension.
|
||||
template<typename genType>
|
||||
bool isIdentity(
|
||||
const genType& m,
|
||||
const typename genType::value_type 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>
|
||||
bool isNormalized(
|
||||
const detail::tmat2x2<T>& m,
|
||||
const T epsilon = std::numeric_limits<T>::epsilon());
|
||||
|
||||
//! Return if a matrix a normalized matrix.
|
||||
//! From GLM_GTX_matrix_query extension.
|
||||
template<typename T>
|
||||
bool isNormalized(
|
||||
const detail::tmat3x3<T>& m,
|
||||
const T epsilon = std::numeric_limits<T>::epsilon());
|
||||
|
||||
//! Return if a matrix a normalized matrix.
|
||||
//! From GLM_GTX_matrix_query extension.
|
||||
template<typename T>
|
||||
bool isNormalized(
|
||||
const detail::tmat4x4<T>& m,
|
||||
const T epsilon = std::numeric_limits<T>::epsilon());
|
||||
|
||||
//! Return if a matrix an orthonormalized matrix.
|
||||
//! From GLM_GTX_matrix_query extension.
|
||||
template<typename genType>
|
||||
bool isOrthogonal(
|
||||
const genType& m,
|
||||
const typename genType::value_type epsilon = std::numeric_limits<typename genType::value_type>::epsilon());
|
||||
|
||||
/// @}
|
||||
}//namespace matrix_query
|
||||
}//namespace gtx
|
||||
}//namespace glm
|
||||
|
||||
#include "matrix_query.inl"
|
||||
|
||||
namespace glm{using namespace gtx::matrix_query;}
|
||||
|
||||
#endif//glm_gtx_matrix_query
|
Loading…
Add table
Add a link
Reference in a new issue