position method

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

Position at time t (seconds).

Implementation

@override
double position(double t) {
  if (t <= 0) return position0;
  return position0 +
      velocity0 * (math.pow(drag, t).toDouble() - 1.0) / _logDrag;
}