diff --git a/vcg/math/base.h b/vcg/math/base.h index b100ed66..d099a369 100644 --- a/vcg/math/base.h +++ b/vcg/math/base.h @@ -158,6 +158,10 @@ namespace math { #define M_PI 3.14159265358979323846 #endif +#ifndef SQRT_TWO +#define SQRT_TWO 1.4142135623730950488 +#endif + template inline SCALAR Clamp( const SCALAR & val, const SCALAR& minval, const SCALAR& maxval) {