diff options
Diffstat (limited to 'tksao/frame/vect.C')
-rw-r--r-- | tksao/frame/vect.C | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tksao/frame/vect.C b/tksao/frame/vect.C index 008249c..bce8c03 100644 --- a/tksao/frame/vect.C +++ b/tksao/frame/vect.C @@ -72,9 +72,9 @@ void Vect::list(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, double rr = ptr->mapLenFromRef((p2-p1).length(),sys,Coord::ARCSEC); double aa = parent->mapAngleFromRef((p2-p1).angle(),sys,sky); str << type_ << '(' << ra << ',' << dec << ',' - << setprecision(3) << fixed << rr << '"' << ','; + << setprecision(parent->precArcsec) << fixed << rr << '"' << ','; str.unsetf(ios_base::floatfield); - str << setprecision(8) << radToDeg(aa) << ')'; + str << setprecision(parent->precLinear) << radToDeg(aa) << ')'; } else listNonCel(ptr, str, sys); @@ -93,7 +93,7 @@ void Vect::listNonCel(FitsImage* ptr, ostream& str, Coord::CoordSystem sys) Vector v1 = ptr->mapFromRef(p1,sys); double rr = ptr->mapLenFromRef((p2-p1).length(),sys); double aa = parent->mapAngleFromRef((p2-p1).angle(),sys); - str << type_ << '(' << setprecision(8) << v1 << ',' + str << type_ << '(' << setprecision(parent->precLinear) << v1 << ',' << rr << ',' << radToDeg(aa) << ')'; } |