velocity method

double velocity({
  1. double accuracy = 0.0,
})

Velocity along this line.

Implementation

double velocity({double accuracy = 0.0}) => start.timestamp != end.timestamp
    ? length(accuracy: accuracy) / (end.timestamp - start.timestamp)
    : 0.0;