Added SQRT_TWO

This commit is contained in:
Paolo Cignoni 2008-05-28 08:51:32 +00:00
parent 89bdafdf8c
commit 2caf6034f3
1 changed files with 4 additions and 0 deletions

View File

@ -158,6 +158,10 @@ namespace math {
#define M_PI 3.14159265358979323846
#endif
#ifndef SQRT_TWO
#define SQRT_TWO 1.4142135623730950488
#endif
template <class SCALAR>
inline SCALAR Clamp( const SCALAR & val, const SCALAR& minval, const SCALAR& maxval)
{