QuadraticBezierCurve constructor

QuadraticBezierCurve(
  1. Vector2? v0,
  2. Vector2? v1,
  3. Vector2? v2
)

v0 – The startpoint.

v1 – The control point.

v2 – The endpoint.

Implementation

QuadraticBezierCurve(Vector2? v0, Vector2? v1, Vector2? v2) {
  this.v0 = v0 ?? Vector2();
  this.v1 = v1 ?? Vector2();
  this.v2 = v2 ?? Vector2();

  isQuadraticBezierCurve = true;
}