x method

  1. @override
double x(
  1. double time
)
override

The position of the object in the simulation at the given time.

Implementation

@override
double x(double time) {
  if (_snapToEnd && isDone(time)) {
    return _endPosition;
  } else {
    return _endPosition + _solution.x(time);
  }
}