8.8.2. Lines

8.8.2. Lines

8.8.2.线

Lines are represented by the linear equation Ax + By + C = 0, where A and B are not both zero. Values of type line are input and output in the following form:

直线由线性方程Ax + By + C = 0表示,其中A和B不都为零。输入line类型的值的格式如下:

{ A, B, C }

Alternatively, any of the following forms can be used for input:

可选的,以下任一种个数均可在输入时使用:

[ ( x1 , y1 ) , ( x2 , y2 ) ]

扫描二维码关注公众号,回复: 9588546 查看本文章

( ( x1 , y1 ) , ( x2 , y2 ) )

( x1 , y1 ) , ( x2 , y2 )

x1 , y1 , x2 , y2

where (x1,y1) and (x2,y2) are two different points on the line.

(x1,y1)和(x2,y2)为线上的两个不同的点。

发布了341 篇原创文章 · 获赞 54 · 访问量 88万+

猜你喜欢

转载自blog.csdn.net/ghostliming/article/details/104664859
今日推荐