diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-07-28 19:15:37 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-07-28 19:15:37 (GMT) |
commit | c05398ec1b743547ea7af7a375cc64edd132cb57 (patch) | |
tree | 96a232006c2cd378a76951eb957ccdf20dece1ac /tksao/util | |
parent | 24eb94699f8fcc135bc253c052a3eb9fc7ce4113 (diff) | |
download | blt-c05398ec1b743547ea7af7a375cc64edd132cb57.zip blt-c05398ec1b743547ea7af7a375cc64edd132cb57.tar.gz blt-c05398ec1b743547ea7af7a375cc64edd132cb57.tar.bz2 |
simplify marker code
Diffstat (limited to 'tksao/util')
-rw-r--r-- | tksao/util/util.C | 14 | ||||
-rw-r--r-- | tksao/util/util.h | 2 |
2 files changed, 0 insertions, 16 deletions
diff --git a/tksao/util/util.C b/tksao/util/util.C index 9351adb..6475a6d 100644 --- a/tksao/util/util.C +++ b/tksao/util/util.C @@ -520,20 +520,6 @@ int dCompare(const void* a, const void* b) return 0; } -Vector mapLen(const Vector& v, const Matrix& mx) -{ - // remove translation - Vector t = Vector() * mx; - Matrix sr = mx * Translate(-t); - - // remove rotation - Vector r = Vector(1,0) * sr; - Matrix s = sr * Rotate(r.angle()); - - // all that is left is Scaling - return (v*s).abs(); -} - #if defined (MAC_OSX_TK) || (_WIN32) int XSetClipRectangles(Display *d, GC gc, int clip_x_origin, int clip_y_origin, diff --git a/tksao/util/util.h b/tksao/util/util.h index dc1d6bf..4728f2d 100644 --- a/tksao/util/util.h +++ b/tksao/util/util.h @@ -130,6 +130,4 @@ extern const char* psFontName(const char*, const char*, const char*); extern int fCompare(const void*, const void*); extern int dCompare(const void*, const void*); - -extern Vector mapLen(const Vector& v, const Matrix& mx); #endif |