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,
dx: lerpDouble(dx, next.dx, t) ?? next.dx,
y: lerpDouble(y, next.y, t) ?? next.y,
dy: lerpDouble(dy, next.dy, t) ?? next.dy,
style: ILerpTo.lerp(style, next.style, t),
thickness: ILerpTo.lerp(thickness, next.thickness, t),
);
}