Fixed getCoordinates for case when a vector is passed in