A = (-3.52, 2.94)
B = (-2.22, 0.46)
C = (2.64, 4.12)
D = (-1.38, 5.76)
X = (-0.86, 2.7)
d: Distance[A, X]^(2) + Distance[B, X]^(2) + Distance[C, X]^(2) + Distance[D, X]^(2)
E = Midpoint(A, C)
F = Midpoint(D, B)
G = Midpoint(E, F)