shape method
Implementation
({double x, double y, double tube, double ring, double g}) shape([double? atT]) {
final u = math.max(0.0, atT ?? t);
final g = 1.0 - math.exp(-u / grow);
return (
x: x,
y: y - rise * (1.0 - math.exp(-u / tauVal)) - drift * u,
tube: tube.$1 + (tube.$2 - tube.$1) * g,
ring: ring.$1 + (ring.$2 - ring.$1) * g,
g: g,
);
}