quadraticCurveTo method

dynamic quadraticCurveTo(
  1. num aCPx,
  2. num aCPy,
  3. num aX,
  4. num aY,
)

Implementation

quadraticCurveTo(num aCPx, num aCPy, num aX, num aY) {
  var curve = QuadraticBezierCurve(
      currentPoint.clone(), Vector2(aCPx.toDouble(), aCPy.toDouble()), Vector2(aX.toDouble(), aY.toDouble()));

  curves.add(curve);

  currentPoint.set(aX.toDouble(), aY.toDouble());

  return this;
}