如何计算圆垂直线相交 [英] How to calculate Circle Vertical Line intersect

查看:142
本文介绍了如何计算圆垂直线相交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下公式来查找直线和圆的相交点

x = {-B + sqrt [(((B ^ 2)-4AC)]}/2A

其中B = 2mc
A = 1 + m ^ 2
C = c ^ 2-r ^ 2

m表示倾斜
c表示线公式的常量

在找到x之后,我通过将x放入(y = mx + c)找到y的值
但是当坡度为无限(等于垂直线)时我们要做的事情
?

I have following formulas to find intersect points of Line and Circle

x = {-B + sqrt[((B^2) - 4AC)]} / 2A

where B = 2mc
A = 1 + m^2
C = c^2 - r^2

m means slop
c means Constant of line formula

after finding x I find value of y by putting x in (y = mx + c)
but what we have to do when slop is infinite (means vertical line)
?

推荐答案

一条垂直线作为等式
A vertical line as equation
x = K


其中K是常量.
因此,您必须求解y的原始方程式,即:


where K is a const.
Hence, you''ve to solve the original equation for y, namely:

(K-a)^2 + (y-b)^2 = r^2



也就是说,这只是一个二次方程.
:)



That is, again, just a quadratic equation.
:)


这篇关于如何计算圆垂直线相交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆