diff options
Diffstat (limited to 'tksao/frame/fitsimage.C')
-rw-r--r-- | tksao/frame/fitsimage.C | 6 |
1 files changed, 4 insertions, 2 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) { |