bool isSettled(double target, [double threshold = 0.001]) { return (value - target).abs() < threshold && velocity.abs() < threshold; }