distanceTo method

double distanceTo(
  1. Offset offset
)

Implementation

double distanceTo(Offset offset) {
  return sqrt(pow((offset.dx - dx), 2) + pow((offset.dy - dy), 2));
}