peak (1/2, 1/2), height 5, slope 2 point 1: bottom left 5 - 2*sqrt((3/2)**2 + (3/2)**2) = 0.757359312880715 point 2: bottom right 5 - 2*sqrt((1/2)**2 + (3/2)**2) = 1.83772233983162 point 3: top right 5 - 2*sqrt((1/2)**2 + (1/2)**2) = 3.58578643762691 point 4: top left 5 - 2*sqrt((3/2)**2 + (1/2)**2) = 1.83772233983162 a = 1.83772233983162 - 3.58578643762691 = -1.74806409779529 b = 0.757359312880715 - 3.58578643762691 = -2.8284271247462 c = 1.83772233983162 - 3.58578643762691 = -1.74806409779529 x = a(c-b)(a-c-b)/(4(a+c-b)) = -1.74806409779529 * (-1.74806409779529 - -2.8284271247462) * (-1.74806409779529 + -1.74806409779529 - -2.8284271247462) /( 4 * (-1.74806409779529 + -1.74806409779529 - -2.8284271247462) ) = -0.472135954999583