velocity method

  1. @override
double velocity(
  1. double t
)
override

Velocity at time t (units/second).

Implementation

@override
double velocity(double t) {
  if (t <= 0) return velocity0;
  return velocity0 * math.pow(drag, t).toDouble();
}