IndexX for points near left/right border calculated
indexY calculated