lerpTo method
Interpolate between this and next using interpolation factor t (0.0 to 1.0)
Implementation
@override
DataPoint lerpTo(DataPoint next, double t) {
return DataPoint(
x: lerpDouble(x, next.x, t) ?? next.x,
y: lerpDouble(y, next.y, t) ?? next.y,
dy: lerpDouble(dy, next.dy, t) ?? next.dy,
data: data.lerpTo(next.data, t)
);
}