8.8.6. Polygons

8.8.6. Polygons
8.8.6.多边形
Polygons are represented by lists of points (the vertexes of the polygon). Polygons are very similar to  closed paths, but are stored differently and have their own set of support routines.
多边形由点列表(多边形的顶点)表示。多边形与封闭路径非常相似,但是它们的存储方式不同,并且具有各自的支持方法。
 
Values of type polygon are specified using any of the following syntaxes:
polygon类型值以如下几种语法指定:
 
( ( x1 , y1 ) , ... , ( xn , yn ) )
( x1 , y1 ) , ... , ( xn , yn )
( x1 , y1 , ... , xn , yn )
x1 , y1 , ... , xn , yn
 
where the points are the end points of the line segments comprising the boundary of the polygon.
语法中的点为组成多边形线段的端点。
 
Polygons are output using the first syntax.
输出时,多边形使用第一种语法。
发布了341 篇原创文章 · 获赞 54 · 访问量 88万+

猜你喜欢

转载自blog.csdn.net/ghostliming/article/details/104669767