distanceTo method

double distanceTo(
  1. Vector2 v
)

Implementation

double distanceTo(Vector2 v) {
  return Math.sqrt(distanceToSquared(v));
}