CatmullRomCurve3 constructor

CatmullRomCurve3({
  1. dynamic points,
  2. dynamic closed = false,
  3. dynamic curveType = 'centripetal',
  4. dynamic tension = 0.5,
})

Implementation

CatmullRomCurve3(
    {points, closed = false, curveType = 'centripetal', tension = 0.5})
    : super() {
  this.points = points ?? [];
  this.closed = closed;
  this.curveType = curveType;
  this.tension = tension;
}