code: public void setCurve (XY[] points, int offset) {
          setCurve(points[offset + 0].x(), points[offset + 0].y(),
                   points[offset + 1].x(), points[offset + 1].y(),
                   points[offset + 2].x(), points[offset + 2].y());
      }
docs: Configures the start, control, and end points for this curve, using the values at the
  specified offset in the {@code points} array.