distanceTo static method

double distanceTo(
  1. DFPosition point1,
  2. DFPosition point2
)

获取距离

Implementation

static double distanceTo(DFPosition point1, DFPosition point2) => sqrt(distanceToSquared(point1, point2));