BezierPath constructor
BezierPath(
- List<
Vector3> controlPoints
Creates a Bezier path from controlPoints, which is copied. The
count must be 3 * segments + 1 for one or more segments.
Implementation
BezierPath(List<Vector3> controlPoints)
: _points = <Vector3>[for (final p in controlPoints) p.clone()] {
if (_points.length < 4 || (_points.length - 1) % 3 != 0) {
throw ArgumentError(
'A Bezier path needs 3 * segments + 1 control points',
);
}
}