summaryrefslogtreecommitdiffstats
path: root/tksao
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-08-22 18:40:48 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-08-22 18:40:48 (GMT)
commit1d2a9d64612f050262c63ba81698f281883daf6e (patch)
treeaf516c0272638399e8e758ea332358406a0b04c7 /tksao
parentea559f9638eec0347bcf89fe5d82afc0ff5eb419 (diff)
downloadblt-1d2a9d64612f050262c63ba81698f281883daf6e.zip
blt-1d2a9d64612f050262c63ba81698f281883daf6e.tar.gz
blt-1d2a9d64612f050262c63ba81698f281883daf6e.tar.bz2
simplify wcs code
Diffstat (limited to 'tksao')
-rw-r--r--tksao/frame/frame3dbase.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/tksao/frame/frame3dbase.C b/tksao/frame/frame3dbase.C
index eec777a..b9b919b 100644
--- a/tksao/frame/frame3dbase.C
+++ b/tksao/frame/frame3dbase.C
@@ -531,7 +531,7 @@ void Frame3dBase::centerImage()
// imageCenter is in IMAGE coords
Vector3d aa = imageCenter3d(keyContext->secMode());
// always center to center of pixel, even for even sized image
- Vector3d bb = (aa*Translate3d(.5,.5,.5)).floor();
+ Vector3d bb = (aa * Translate3d(.5, .5, .5)).floor();
// vp_ is in REF coords
vp_ = bb*Translate3d(-.5, -.5, -.5);
}
@@ -552,7 +552,7 @@ Vector3d Frame3dBase::imageCenter3d(FrScale::SecMode mode)
return Vector3d((pp->xmax - pp->xmin)/2.+pp->xmin,
(pp->ymax - pp->ymin)/2.+pp->ymin,
(zz->zmax - zz->zmin)/2.+zz->zmin) *
- Translate3d( .5, .5, .5);
+ Translate3d(.5, .5, .5);
}
Vector3d Frame3dBase::imageSize3d(FrScale::SecMode mode )