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 + acceleration * t;
}