Calculates squared distance from (x, y) to this box.
x
y
double distanceSq(double x, double y) { final dx = _axisDist(x, minX, maxX); final dy = _axisDist(y, minY, maxY); return dx * dx + dy * dy; }