summaryrefslogtreecommitdiffstats
path: root/tksao/vector
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-12-01 17:01:10 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-12-01 17:01:10 (GMT)
commit1fdd3f87f855491aabe98a6772e952457d222644 (patch)
treec4ddeb3526da4de4ca27de2d0b13ada7d038ec47 /tksao/vector
parent6ac9587702e94857e264cc672fb7fd5b6a35ffb0 (diff)
downloadblt-1fdd3f87f855491aabe98a6772e952457d222644.zip
blt-1fdd3f87f855491aabe98a6772e952457d222644.tar.gz
blt-1fdd3f87f855491aabe98a6772e952457d222644.tar.bz2
update AST WCS
Diffstat (limited to 'tksao/vector')
-rw-r--r--tksao/vector/vector.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/tksao/vector/vector.h b/tksao/vector/vector.h
index 55efda8..915c81c 100644
--- a/tksao/vector/vector.h
+++ b/tksao/vector/vector.h
@@ -38,10 +38,9 @@ class Vector {
Vector(const Vector3d&);
Vector& operator=(const Vector3d&);
- double& operator[](int i)
- {return v[i];} // return element
- double* vv()
- {return v;} // return vector
+ const double& operator[](int i) const {return v[i];} // return element
+ double& operator[](int i) {return v[i];} // return element
+ double* vv() {return v;} // return vector
Vector& origin()
{v[0]=0; v[1]=0; v[2]=1; return *this;}