From: <bo...@us...> - 2008-09-13 06:01:14
|
Revision: 307 http://gearbox.svn.sourceforge.net/gearbox/?rev=307&view=rev Author: borax00 Date: 2008-09-13 06:01:24 +0000 (Sat, 13 Sep 2008) Log Message: ----------- got rid of HYPOTENUSE definition after bug report from Rafal Modified Paths: -------------- gearbox/trunk/src/gbxutilacfr/mathdefs.h Modified: gearbox/trunk/src/gbxutilacfr/mathdefs.h =================================================================== --- gearbox/trunk/src/gbxutilacfr/mathdefs.h 2008-09-04 03:25:32 UTC (rev 306) +++ gearbox/trunk/src/gbxutilacfr/mathdefs.h 2008-09-13 06:01:24 UTC (rev 307) @@ -130,17 +130,10 @@ //dox For example, ROUND_TO(8,5) and ROUND_TO(12,5) will both result in 10. #define ROUND_TO(n,d) (d*rint(n/d)) #endif -//#ifndef SQR -//#define SQR(x) ((x)*(x)) -//#endif #ifndef SIGN //dox Sign of a number. #define SIGN(A) ((A)<0?(-1):(1)) #endif -#ifndef HYPOTENEUSE -//dox Finds hypoeneuse -#define HYPOTENEUSE(a,b) (sqrt(SQR(a)+SQR(b))) -#endif #ifndef COS_LAW //dox Law of cosines. #define COS_LAW(side1, side2, theta) \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |