Skip to content

Commit e17e6ff

Browse files
authored
Update 702-math-polyext.markdown
1 parent a01ed5e commit e17e6ff

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

_build/reference/702-math-polyext.markdown

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
# POLYEXT
22

3-
> POLYEXT poly(), BYREF xmin, BYREF ymin, BYREF xmax, BYREF ymax
3+
> POLYEXT poly, BYREF xmin, BYREF ymin, BYREF xmax, BYREF ymax
44
5-
Returns the polyline's extents.
5+
Returns the extents of the polyline `poly`. `xmin` and `xmax` are extents in x-direction and `ymin` and `ymax` are the extents in y-direction.
6+
7+
See DRAWPOLY on how to define a polyline.
8+
9+
### Example
610

711
```
812
polygon = [ [30,50], [100,70], [120,90], [50,100], [30,50]]
913
1014
polyext(polygon, PolyXmin, PolyYmin, PolyXmax, PolyYmax)
1115
16+
' Draw polygon and a rectangle for indicating the extents
1217
drawpoly polygon color 12
1318
rect PolyXmin, PolyYmin, PolyXmax, PolyYmax color 5
1419

0 commit comments

Comments
 (0)