From 08a437c3c35ef4b320be97dc7fb5a9b36569042c Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 6 Feb 2004 02:24:47 +0000 Subject: [PATCH] First commit... --- vcg/math/Base.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vcg/math/Base.h b/vcg/math/Base.h index f9685890..0b71681f 100644 --- a/vcg/math/Base.h +++ b/vcg/math/Base.h @@ -67,18 +67,18 @@ namespace vcg { static T ToRad(const T a); }; - T Math::Sqrt(const float v) + float Math::Sqrt(const float v) { return sqrtf(v); } - T Math::Abs(const float v) + float Math::Abs(const float v) { return fabsf(v); } - T Math::Sqrt(const double v) + double Math::Sqrt(const double v) { return sqrt(v); } - T Math::Abs(const double v) + double Math::Abs(const double v) { return fabs(v); } const unsigned char Math::MaxVal = 255; - const short Math::MaxVal = 127; + const char Math::MaxVal = 127; const unsigned short Math::MaxVal = 0xFFFFu; const short Math::MaxVal = 0x7FFF; const float Math::MaxVal = 3.4E38F;