distance method

double distance(
  1. Vector2D o
)

Implementation

double distance(Vector2D o) => math.sqrt(distanceSqr(o));