CubicBezierCurve constructor

CubicBezierCurve(
  1. Vector2? v0,
  2. Vector2? v1,
  3. Vector2? v2,
  4. Vector2? v3,
)

Implementation

CubicBezierCurve(Vector2? v0, Vector2? v1, Vector2? v2, Vector2? v3) {
  type = 'CubicBezierCurve';
  isCubicBezierCurve = true;

  this.v0 = v0 ?? Vector2(null, null);
  this.v1 = v1 ?? Vector2(null, null);
  this.v2 = v2 ?? Vector2(null, null);
  this.v3 = v3 ?? Vector2(null, null);
}