diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2020-03-31 20:16:55 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2020-03-31 20:16:55 (GMT) |
commit | d0de38e4418680d9c967e6979158a1a440048329 (patch) | |
tree | 170cceb4b92277787b7bbc2aa1bbc204b20c8ba3 /tksao/tkutil/gridbase.C | |
parent | c3a65c37b2b537f91626a8153ae7761f0a49a3aa (diff) | |
download | blt-d0de38e4418680d9c967e6979158a1a440048329.zip blt-d0de38e4418680d9c967e6979158a1a440048329.tar.gz blt-d0de38e4418680d9c967e6979158a1a440048329.tar.bz2 |
clean up code
Diffstat (limited to 'tksao/tkutil/gridbase.C')
-rw-r--r-- | tksao/tkutil/gridbase.C | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tksao/tkutil/gridbase.C b/tksao/tkutil/gridbase.C index af795b5..fa7ed1f 100644 --- a/tksao/tkutil/gridbase.C +++ b/tksao/tkutil/gridbase.C @@ -3,7 +3,6 @@ // For conditions of distribution and use, see copyright notice in "copyright" #include "util.h" -#include "tkutil.h" #include "gridbase.h" #include "attribute.h" @@ -11,6 +10,8 @@ EXTERN void TkDrawAngledChars(Display *display, Drawable drawable, GC gc, Tk_Font tkfont, const char *source, int numBytes, double x, double y, double angle); +extern double radToDeg(double aa); + extern "C" { #include "ast.h" #include "grf.h" @@ -377,11 +378,11 @@ double GridBase::calcTextAngle(const char* just, Vector up) // normalize if (rr>0) - while (rr>M_TWOPI) - rr -= M_TWOPI; + while (rr>2*M_PI) + rr -= 2*M_PI; else while (rr<0) - rr += M_TWOPI; + rr += 2*M_PI; return rr; } |