back to Table of Contents


PolygonInPolygon (function)

This function will check, how many percent of a given (check) polygon are inside the given source polygon (ie. how much of the check polygon its surface does overlap with the source polygon its surface). Optionally it may also draw the checked polygon with given inside/outside colors respectivly. Also optionally it may draw a borderline surrounding the shape of the checked polygon. This function is a combination of the FillPolygon() subroutine and the PointInPolygon() function.


SYNTAX:

percent% = PolygonInPolygon% (chkPolyX%(), chkPolyY%(), srcPolyX%(), srcPolyY%(), ic&&, oc&&, sc&&)

INPUTS:

chkPolyX%(), chkPolyY%() (INTEGER arrays)

srcPolyX%(), srcPolyY%() (INTEGER arrays)

ic&&, oc&& (_INTEGER64s)

sc&& (_INTEGER64)


RESULT:

percent% (INTEGER)


back to Table of Contents