docs: public Point getPoint(int position) {
          if (position<0 || position>=size()) throw new ArrayIndexOutOfBoundsException("Invalid position: " + position);
          return new Point(coordinates[0][position],coordinates[1][position]);
      }