From 09c1d4cb79f1441496143118fb94513829ba1500 Mon Sep 17 00:00:00 2001 From: William Joye Date: Fri, 1 Dec 2017 14:56:24 -0500 Subject: update AST WCS --- tksao/frame/fitsimage.C | 6 ++++-- tksao/frame/fitsimage.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tksao/frame/fitsimage.C b/tksao/frame/fitsimage.C index 43ba208..f9fe867 100644 --- a/tksao/frame/fitsimage.C +++ b/tksao/frame/fitsimage.C @@ -4146,12 +4146,14 @@ Vector3d FitsImage::wcsTran(AstFrameSet* ast, const Vector3d& in, int forward) #endif #ifndef NEWWCS -double FitsImage::wcsDistance(AstFrameSet* ast, Vector vv1, Vector vv2) +double FitsImage::wcsDistance(AstFrameSet* ast, const Vector& vv1, + const Vector& vv2) { return astDistance(ast, vv1.v, vv2.v); } #else -double FitsImage::wcsDistance(AstFrameSet* ast, Vector vv1, Vector vv2) +double FitsImage::wcsDistance(AstFrameSet* ast, const Vector& vv1, + const Vector& vv2) { int naxes = astGetI(ast,"Naxes"); switch (naxes) { diff --git a/tksao/frame/fitsimage.h b/tksao/frame/fitsimage.h index acd689e..09de2f3 100644 --- a/tksao/frame/fitsimage.h +++ b/tksao/frame/fitsimage.h @@ -408,7 +408,7 @@ class FitsImage { int wcsIsASkyFrame(AstFrameSet*); Vector wcsTran(AstFrameSet*, const Vector&, int); void wcsTran(AstFrameSet*, int, Vector*, int, Vector*); - double wcsDistance(AstFrameSet*, Vector, Vector); + double wcsDistance(AstFrameSet*, const Vector&, const Vector&); #ifdef NEWWCS Vector3d wcsTran(AstFrameSet*, const Vector3d&, int); double wcsAngle(AstFrameSet*, const Vector&, const Vector&, const Vector&); -- cgit v0.12