Changeset 2582 for GTP/trunk/Lib/Vis/Preprocessing/src/Vector3.h
- Timestamp:
- 01/09/08 11:14:26 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Vector3.h
r2575 r2582 41 41 42 42 // Functions to get at the std::vector components 43 float& operator[] ( int inx) {43 float& operator[] (const int inx) { 44 44 #ifndef __VECTOR_HACK 45 45 if (inx == 0) … … 60 60 #endif 61 61 62 const float & operator[] (int inx) const {62 const float &operator[] (const int inx) const { 63 63 #ifndef __VECTOR_HACK 64 64 if (inx == 0) … … 66 66 else 67 67 if (inx == 1) 68 return y;68 return y; 69 69 else 70 return z;70 return z; 71 71 #else 72 72 return *(&x+inx);
Note: See TracChangeset
for help on using the changeset viewer.