POLYEXT

POLYEXT poly, BYREF xmin, BYREF ymin, BYREF xmax, BYREF ymax

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.

See DRAWPOLY on how to define a polyline.

Example

polygon = [ [30,50], [100,70], [120,90], [50,100], [30,50]]

polyext(polygon, PolyXmin, PolyYmin, PolyXmax, PolyYmax)

' Draw polygon and a rectangle for indicating the extents
drawpoly polygon color 12
rect PolyXmin, PolyYmin, PolyXmax, PolyYmax  color 5
Math
If there is insufficient information on this page and you wish learn more about POLYEXT, please send an email to smallbasic@gmail.com. You can help to improve information about POLYEXT by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.