Auth manager not initialized
Use (x1+x22,y1+y22)\left(\dfrac{x_1+x_2}{2}, \dfrac{y_1+y_2}{2}\right)(2x1+x2,2y1+y2).