velocityFrom method

double velocityFrom(
  1. OffsetPoint other
)

Returns velocity between this and other - previous point.

Implementation

double velocityFrom(OffsetPoint other) => timestamp != other.timestamp
    ? this.distanceTo(other) / (timestamp - other.timestamp)
    : 0.0;