distance static method

Implementation

static double distance(UPatternPoint a, UPatternPoint b) {
  final double dx = a.x - b.x;
  final double dy = a.y - b.y;
  return sqrt(dx * dx + dy * dy);
}