mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-07 14:51:08 +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
57
ExternalLibs/glm/gtx/epsilon.hpp
Normal file
57
ExternalLibs/glm/gtx/epsilon.hpp
Normal file
|
@ -0,0 +1,57 @@
|
|||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2005-12-21
|
||||
// Updated : 2006-11-13
|
||||
// Licence : This source is under MIT License
|
||||
// File : glm/gtx/epsilon.hpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Dependency:
|
||||
// - GLM core
|
||||
// - GLM_GTX_half
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef glm_gtx_epsilon
|
||||
#define glm_gtx_epsilon
|
||||
|
||||
// Dependency:
|
||||
#include "../glm.hpp"
|
||||
#include "../gtc/half_float.hpp"
|
||||
|
||||
#if(defined(GLM_MESSAGES) && !defined(glm_ext))
|
||||
# pragma message("GLM: GLM_GTX_epsilon extension included")
|
||||
#endif
|
||||
|
||||
namespace glm{
|
||||
namespace gtx{
|
||||
namespace epsilon ///< GLM_GTX_epsilon extension: Comparison functions for a user defined epsilon values.
|
||||
{
|
||||
/// \addtogroup gtx_epsilon
|
||||
///@{
|
||||
|
||||
//! Returns the component-wise compare of |x - y| < epsilon.
|
||||
//! From GLM_GTX_epsilon extension.
|
||||
template <typename genTypeT, typename genTypeU>
|
||||
bool equalEpsilon(
|
||||
genTypeT const & x,
|
||||
genTypeT const & y,
|
||||
genTypeU const & epsilon);
|
||||
|
||||
//! Returns the component-wise compare of |x - y| >= epsilon.
|
||||
//! From GLM_GTX_epsilon extension.
|
||||
template <typename genTypeT, typename genTypeU>
|
||||
bool notEqualEpsilon(
|
||||
genTypeT const & x,
|
||||
genTypeT const & y,
|
||||
genTypeU const & epsilon);
|
||||
|
||||
///@}
|
||||
}//namespace epsilon
|
||||
}//namespace gtx
|
||||
}//namespace glm
|
||||
|
||||
#include "epsilon.inl"
|
||||
|
||||
namespace glm{using namespace gtx::epsilon;}
|
||||
|
||||
#endif//glm_gtx_epsilon
|
Loading…
Add table
Add a link
Reference in a new issue