设三点坐标为(x1,y1),(x2,y2),(x3,y3)
则圆心坐标(a,b)
a=((y2-y1)(y3y3-y1y1+x3x3-x1x1)-(y3-y1)(y2y2-y1y1+x2x2-x1x1))/(2.0*((x3-x1)(y2-y1)-(x2-x1)(y3-y1)));
b=((x2-x1)(x3x3-x1x1+y3y3-y1y1)-(x3-x1)(x2x2-x1x1+y2y2-y1y1))/(2.0*((y3-y1)(x2-x1)-(y2-y1)(x3-x1)));
已知三点求这三点构成三角形的外接圆圆心坐标
最新推荐文章于 2021-12-04 13:22:34 发布