Added SQRT_TWO
This commit is contained in:
parent
89bdafdf8c
commit
2caf6034f3
|
@ -158,6 +158,10 @@ namespace math {
|
||||||
#define M_PI 3.14159265358979323846
|
#define M_PI 3.14159265358979323846
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef SQRT_TWO
|
||||||
|
#define SQRT_TWO 1.4142135623730950488
|
||||||
|
#endif
|
||||||
|
|
||||||
template <class SCALAR>
|
template <class SCALAR>
|
||||||
inline SCALAR Clamp( const SCALAR & val, const SCALAR& minval, const SCALAR& maxval)
|
inline SCALAR Clamp( const SCALAR & val, const SCALAR& minval, const SCALAR& maxval)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue