n = points.length and ++i here?