Squared distance from this to arg
arg
double distanceToSquared(Vector2 arg) { final dx = x - arg.x; final dy = y - arg.y; return dx * dx + dy * dy; }