cleaned up todeg and torad

This commit is contained in:
Paolo Cignoni 2004-02-08 18:11:21 +00:00
parent 3d0bea8089
commit a77d22988c
1 changed files with 6 additions and 6 deletions

View File

@ -63,8 +63,8 @@ namespace vcg {
static T inline Abs(const T v);
static const T MaxVal;
static T ToDeg(const T a);
static T ToRad(const T a);
static T ToDeg(const T &a);
static T ToRad(const T &a);
};
float Math<float>::Sqrt(const float v)
@ -102,10 +102,10 @@ inline SCALAR Clamp( const SCALAR & val, const SCALAR& minval, const SCALAR& max
inline float ToDeg(const float &a){return a*180.0f/float(M_PI);}
inline float ToRad(const float &a){return float(M_PI)*a/180.0f;}
inline double ToDeg(const double &a){return a*180.0/M_PI;}
inline double ToRad(const double &a){return M_PI*a/180.0;}
inline float Math<float>::ToDeg(const float &a){return a*180.0f/float(M_PI);}
inline float Math<float>::ToRad(const float &a){return float(M_PI)*a/180.0f;}
inline double Math<double>::ToDeg(const double &a){return a*180.0/M_PI;}
inline double Math<double>::ToRad(const double &a){return M_PI*a/180.0;}
} // End namespace