CubicBezierCurve constructor
CubicBezierCurve(
- Vector2? v0,
- Vector2? v1,
- Vector2? v2,
- Vector2? v3,
v0
– The starting point.
v1
– The first control point
v2
– The second control point.
v3
– The ending point.
Implementation
CubicBezierCurve(Vector2? v0, Vector2? v1, Vector2? v2, Vector2? v3) {
this.v0 = v0 ?? Vector2();
this.v1 = v1 ?? Vector2();
this.v2 = v2 ?? Vector2();
this.v3 = v3 ?? Vector2();
isCubicBezierCurve = true;
}