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
81
ExternalLibs/glm/gtx/fast_exponential.hpp
Normal file
81
ExternalLibs/glm/gtx/fast_exponential.hpp
Normal file
|
@ -0,0 +1,81 @@
|
|||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2006-01-09
|
||||
// Updated : 2006-11-13
|
||||
// Licence : This source is under MIT License
|
||||
// File : glm/gtx/fast_exponential.hpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Dependency:
|
||||
// - GLM core
|
||||
// - GLM_GTC_half_float
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef glm_gtx_fast_exponential
|
||||
#define glm_gtx_fast_exponential
|
||||
|
||||
// Dependency:
|
||||
#include "../glm.hpp"
|
||||
#include "../gtc/half_float.hpp"
|
||||
|
||||
#if(defined(GLM_MESSAGES) && !defined(glm_ext))
|
||||
# pragma message("GLM: GLM_GTX_fast_exponential extension included")
|
||||
#endif
|
||||
|
||||
namespace glm{
|
||||
namespace gtx{
|
||||
namespace fast_exponential ///< GLM_GTX_fast_exponential extension: Fast but less accurate implementations of exponential based functions.
|
||||
{
|
||||
using namespace gtc::half_float;
|
||||
/// \addtogroup gtx_fast_exponential
|
||||
/// @{
|
||||
|
||||
//! Faster than the common pow function but less accurate.
|
||||
//! From GLM_GTX_fast_exponential extension.
|
||||
template <typename valType>
|
||||
valType fastPow(
|
||||
valType const & x,
|
||||
valType const & y);
|
||||
|
||||
//! Faster than the common pow function but less accurate.
|
||||
//! From GLM_GTX_fast_exponential extension.
|
||||
template <typename T, typename U>
|
||||
T fastPow(
|
||||
const T& x,
|
||||
const U& y);
|
||||
|
||||
//! Faster than the common exp function but less accurate.
|
||||
//! From GLM_GTX_fast_exponential extension.
|
||||
template <typename T>
|
||||
T fastExp(const T& x);
|
||||
|
||||
//! Faster than the common log function but less accurate.
|
||||
//! From GLM_GTX_fast_exponential extension.
|
||||
template <typename T>
|
||||
T fastLog(const T& x);
|
||||
|
||||
//! Faster than the common exp2 function but less accurate.
|
||||
//! From GLM_GTX_fast_exponential extension.
|
||||
template <typename T>
|
||||
T fastExp2(const T& x);
|
||||
|
||||
//! Faster than the common log2 function but less accurate.
|
||||
//! From GLM_GTX_fast_exponential extension.
|
||||
template <typename T>
|
||||
T fastLog2(const T& x);
|
||||
|
||||
//! Faster than the common ln function but less accurate.
|
||||
//! From GLM_GTX_fast_exponential extension.
|
||||
template <typename T>
|
||||
T fastLn(const T& x);
|
||||
|
||||
/// @}
|
||||
}//namespace fast_exponential
|
||||
}//namespace gtx
|
||||
}//namespace glm
|
||||
|
||||
#include "fast_exponential.inl"
|
||||
|
||||
namespace glm{using namespace gtx::fast_exponential;}
|
||||
|
||||
#endif//glm_gtx_fast_exponential
|
Loading…
Add table
Add a link
Reference in a new issue