Actually, I would replace this with adding `ii.shape[i]` to the negative index, to allow standard negative indexing as in numpy.

Also, "cordinates" --> "coordinates"