从线段计算线的线性方程

时间:2016-04-23 15:03:48

标签: line

理想情况下,我们的每一行都将采用Ax + By = C的形式,其中A,B和C是定义该行的数字。但是,我们很少以这种格式给出行,但我们可以从两点轻松生成这样的等式。假设我们有两个不同的点,(x1,y1)和(x2,y2),并且想要找到上面等式的A,B和C.     我们可以通过设置来实现     A = y2-y1     B = x1-x2     C = A x1 + B y1

The above facts is described in the link https://www.topcoder.com/community/data-science/data-science-tutorials/geometry-concepts-line-intersection-and-its-applications/

But i am unable to understand the concept of the below 

A = y2-y1
B = x1-x2
C = A*x1+B*y1

solution ( the value of A,B and C). 

0 个答案:

没有答案