num distanceXYSqr(num x, num y)

Source

num distanceXYSqr(num x, num y) {
  num xd = this.x - x;
  num yd = this.y - y;
  return xd * xd + yd * yd;
}