Index: kernel/include/IMP/Vector3D.h =================================================================== --- kernel/include/IMP/Vector3D.h (revision 441) +++ kernel/include/IMP/Vector3D.h (working copy) @@ -38,6 +38,14 @@ return vec_[i]; } +// suppress a warning +#ifndef SWIG + //! \return A single component of this vector (0-2). + /** This is more usual notation for C++. Not useful for python.*/ + Float operator[](unsigned int i) const { + return get_component(i); + } +#endif //! \return the scalar product of two vectors. /** \param[in] vec2 The other vector to use in the product. */