positionAt method
The point on the curve at natural parameter t (clamped to 0..1).
Implementation
@override
Vector3 positionAt(double t) {
final (segment, local) = _segmentOf(t, _points.length - 1);
return _points[segment] * (1.0 - local) + _points[segment + 1] * local;
}