根据圆上三点求圆心及半径

根据圆上三点求圆心及半径

 

Equation of a circle passing through 3 points (x1, y1) (x2, y2) and (x3, y3).

The equation of the circle is described by the equation:

Circle equation

After substituting the three given points which lies on the circle we get the set of equations that can be described by the determinant:

Circle equation

The coefficienta A, B, C and D can be found by solving the following determinants:

Circle equation
Circle equation
Circle equation
Circle equation

The values of A, B, C and D will be after solving the determinants:

Circle equation

Center point (x, y) and the radius of a circle passing through 3 points (x1, y1) (x2, y2) and (x3, y3) are:

Circle equation

Example: Find the equation of a circle passing through the points (⎯ 3, 4), (4, 5) and (1, ⎯ 4).

A = ⎯ 3(5 ⧾ 4) ⎯ 4(4 ⎯ 1) ⧾ 4(⎯ 4) ⎯ 1 • 5 = ⎯ 60

B = (9 ⧾ 16)(⎯ 4 ⎯ 5) ⧾ (16 ⧾ 25)(4 ⧾ 4) ⧾ (1 ⧾ 16)(5 ⎯ 4) = 120

C = (9 ⧾ 16)(4 ⎯ 1) ⧾ (16 ⧾ 25)(1 ⧾ 3) ⧾ (1 ⧾ 16)(⎯ 3 ⎯ 4) = 120

D = (9 ⧾ 16)(1 • 5 ⎯ 4(⎯ 4)) ⧾ (16 ⧾ 25)(⎯ 3 • (⎯ 4) ⎯ 1 · 4) ⧾ (1 ⧾ 16)(4 • 4 ⎯ (⎯ 3)5) = 1380

Divide all terms by ⎯ 60 to obtaine:

The center of the circle is by solving x and y is at point   (1, 1)

The radius of the circle is:

转载:http://www.cnblogs.com/xpvincent/p/8266734.html

另一种推倒及其代码:https://blog.csdn.net/liutaojia/article/details/83625151

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值