sqrt(1/6*((x-y)**2+(y-z)**2+(z-x)**2)) - A+B*(x+y+z) = 0