code: public void setCurve (ICubicCurve curve) {
          setCurve(curve.x1(), curve.y1(), curve.ctrlX1(), curve.ctrlY1(),
                   curve.ctrlX2(), curve.ctrlY2(), curve.x2(), curve.y2());
      }
docs: Configures the start, control and end points for this curve to be the same as the supplied
  curve.