distanceSqr method

double distanceSqr(
  1. V2 o
)

Implementation

double distanceSqr(V2 o) => (x - o.x)*(x - o.x) + (y - o.y)*(y - o.y);