code: public float[] getPoint(int index) {
          checkPoints();
  
          float result[] = new float[2];
          
          result[0] = points[index * 2];
          result[1] = points[index * 2 + 1];
          
          return result;
      }
docs: Get a single point in this polygon
  
  @param index The index of the point to retrieve
  @return The point's coordinates