new IWPolygonUtils()
Methods
-
clip(subjectPolygon, clipPolygon)
-
Clips a the subject polygon or polyline against the clip polygon by the Sutherland-Hodgman-Algorithm. This will work for arrays of IWCoordinates, too.
Parameters:
Name Type Description subjectPolygon
Array.<IWPoint> the polygon to be clipped clipPolygon
Array.<IWPoint> the polygon to clip against Returns:
IWPoint[] the clipped polygon