CubicBezierCurve3 constructor

CubicBezierCurve3([
  1. Vector3? v0,
  2. Vector3? v1,
  3. Vector3? v2,
  4. Vector3? v3,
])

v0 – The starting point.

v1 – The first control point

v2 – The second control point.

v3 – The ending point.

Implementation

CubicBezierCurve3([Vector3? v0, Vector3? v1, Vector3? v2, Vector3? v3]):super(){
  this.v0 = v0 ?? Vector3.zero();
  this.v1 = v1 ?? Vector3.zero();
  this.v2 = v2 ?? Vector3.zero();
  this.v3 = v3 ?? Vector3.zero();
}