From 2caf6034f3d1ef77b6f446cd071864d622c35e44 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Wed, 28 May 2008 08:51:32 +0000 Subject: [PATCH] Added SQRT_TWO --- vcg/math/base.h | 4 ++++ 1 file changed, 4 insertions(+) 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) {