CatmullRomPath constructor
CatmullRomPath(
- List<
Vector3> points
Creates a Catmull-Rom curve through points, which is copied. At
least two points are required.
Implementation
CatmullRomPath(List<Vector3> points)
: _points = <Vector3>[for (final p in points) p.clone()] {
if (_points.length < 2) {
throw ArgumentError('A path needs at least two points');
}
}