diff options
author | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:41:31 +0000 |
---|---|---|
committer | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:41:31 +0000 |
commit | 3c59753b94d0425e7ddcc4b57b11dfb283d0c144 (patch) | |
tree | d405802ec35c185908c71f0fbedc3a237758b665 /z15.c | |
parent | f7f41daa27e7ccff0aa184cc81e80b9c96e3d761 (diff) | |
download | lout-3c59753b94d0425e7ddcc4b57b11dfb283d0c144.tar.gz |
Lout 3.36.
git-svn-id: http://svn.savannah.nongnu.org/svn/lout/trunk@41 9365b830-b601-4143-9ba8-b4a8e2c3339c
Diffstat (limited to 'z15.c')
-rw-r--r-- | z15.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,6 +1,6 @@ /*@z15.c:Size Constraints:MinConstraint(), EnlargeToConstraint()@*************/ /* */ -/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.35) */ +/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.36) */ /* COPYRIGHT (C) 1991, 2007 Jeffrey H. Kingston */ /* */ /* Jeffrey H. Kingston (jeff@it.usyd.edu.au) */ @@ -10,7 +10,7 @@ /* */ /* This program is free software; you can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ -/* the Free Software Foundation; either Version 2, or (at your option) */ +/* the Free Software Foundation; either Version 3, or (at your option) */ /* any later version. */ /* */ /* This program is distributed in the hope that it will be useful, */ @@ -32,7 +32,7 @@ /*****************************************************************************/ #include <math.h> #ifndef M_PI -#define M_PI 3.1415926535897931160E0 +#define M_PI 3.14159265358979323846 #endif #include "externs.h" @@ -194,7 +194,7 @@ CONSTRAINT *hc, CONSTRAINT *vc, int dim) debug4(DSC, DD, "RotateConstraint(c, y, %sd, %s, %s, %s)", buff, EchoConstraint(hc), EchoConstraint(vc), dimen(dim)); - /* work out angle in radians between 0 and 2*PI */ + /* work out angle in radians between 0 and 2*M_PI */ theta = (float) angle * 2 * M_PI / (float) (DG * 360); while( theta < 0 ) theta += 2 * M_PI; while( theta >= 2 * M_PI ) theta -= 2 * M_PI; |