num distance(Point<num> p1, Point<num> p2)

Source

static num distance(math.Point<num> p1, math.Point<num> p2) =>
  p1.distanceTo(p2);