From 653416d5c06d54f8e75603f32043d328ba902b9c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 14 Aug 2002 17:07:43 -0300 Subject: angles in radians(!) --- lmathlib.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lmathlib.c b/lmathlib.c index 435eeda5..0e9860ee 100644 --- a/lmathlib.c +++ b/lmathlib.c @@ -1,5 +1,5 @@ /* -** $Id: lmathlib.c,v 1.48 2002/06/24 13:54:13 roberto Exp roberto $ +** $Id: lmathlib.c,v 1.49 2002/08/07 20:54:38 roberto Exp roberto $ ** Standard mathematical library ** See Copyright Notice in lua.h */ @@ -21,15 +21,15 @@ /* -** If you want Lua to operate in radians (instead of degrees), -** define RADIANS +** If you want Lua to operate in degrees (instead of radians), +** define DEGREES */ -#ifdef RADIANS -#define FROMRAD(a) (a) -#define TORAD(a) (a) -#else +#ifdef DEGREES #define FROMRAD(a) ((a)/RADIANS_PER_DEGREE) #define TORAD(a) ((a)*RADIANS_PER_DEGREE) +#else +#define FROMRAD(a) (a) +#define TORAD(a) (a) #endif -- cgit v1.2.3-55-g6feb