@@ -1532,15 +1532,23 @@ def extent(self):
15321532class Polygon (Builtin ):
15331533 """
15341534 <dl>
1535- <dt>'Polygon[{$point_1$, $point_2$ ...}]'
1536- <dd>represents the filled polygon primitive.
1537- <dt>'Polygon[{{$p_11$, $p_12$, ...}, {$p_21$, $p_22$, ...}, ...}]'
1538- <dd>represents a number of filled polygon primitives.
1535+ <dt>'Polygon[{$point_1$, $point_2$ ...}]'
1536+ <dd>represents the filled polygon primitive.
1537+
1538+ <dt>'Polygon[{{$p_11$, $p_12$, ...}, {$p_21$, $p_22$, ...}, ...}]'
1539+ <dd>represents a number of filled polygon primitives.
15391540 </dl>
15401541
1542+ A Right Triangle:
15411543 >> Graphics[Polygon[{{1,0},{0,0},{0,1}}]]
15421544 = -Graphics-
15431545
1546+ Notice that there is a line connecting from the last point to the first one.
1547+
1548+ A point is an element of the polygon if a ray from the point in any direction in the plane crosses the boundary line segments an odd number of times.
1549+ >> Graphics[Polygon[{{150,0},{121,90},{198,35},{102,35},{179,90}}]]
1550+ = -Graphics-
1551+
15441552 >> Graphics3D[Polygon[{{0,0,0},{0,1,1},{1,0,0}}]]
15451553 = -Graphics3D-
15461554 """
0 commit comments