CatmullRomCurve3 constructor

CatmullRomCurve3({
  1. List<Vector>? points,
  2. bool closed = false,
  3. String curveType = 'centripetal',
  4. num tension = 0.5,
})

points – An array of Vector3 points

closed – Whether the curve is closed. Default is false.

curveType – Type of the curve. Default is centripetal.

tension – Tension of the curve. Default is 0.5.

Implementation

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