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/frame/fitsmap.C | |
parent | 24eb94699f8fcc135bc253c052a3eb9fc7ce4113 (diff) | |
download | blt-c05398ec1b743547ea7af7a375cc64edd132cb57.zip blt-c05398ec1b743547ea7af7a375cc64edd132cb57.tar.gz blt-c05398ec1b743547ea7af7a375cc64edd132cb57.tar.bz2 |
simplify marker code
Diffstat (limited to 'tksao/frame/fitsmap.C')
-rw-r--r-- | tksao/frame/fitsmap.C | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tksao/frame/fitsmap.C b/tksao/frame/fitsmap.C index 3c5f052..8b34f35 100644 --- a/tksao/frame/fitsmap.C +++ b/tksao/frame/fitsmap.C @@ -143,6 +143,24 @@ void FitsImage::listFromRef(ostream& str, const Vector& vv, // Map Length +Vector FitsImage::mapLen(const Vector& vv, const Matrix& mx) +{ + // imageToPhysical/Amplifier/Dector have no rotation, only scale/translation + // just grap scale + return vv*Scale(mx); + + // remove translation + // Vector tt = Vector() * mx; + // Matrix sr = mx * Translate(-tt); + + // remove rotation + // Vector rr = Vector(1,0) * sr; + // Matrix ss = sr * Rotate(rr.angle()); + + // all that is left is Scaling + // return (vv*ss).abs(); +} + double FitsImage::mapLenFromRef(double dd, Coord::CoordSystem sys, Coord::DistFormat dist) { |