QuadraticBezier constructor
QuadraticBezier(
- List<
Vector2> points
Constructs a quadratic Bézier curve from a List of Vector2
. The first
point in points
will be the curve's start point, the second its control
point, and the third its end point.
Implementation
QuadraticBezier(List<Vector2> points) : super(points) {
if (points.length != 3) {
throw ArgumentError(
'Quadratic Bézier curves require exactly three points');
}
}