Clipper:getIntersection
From GiderosMobile
Available since: Gideros 2015.03.22
Class: Clipper
Description
Computes the intersection of the subject and clip polygons.
(table) = Clipper:getIntersection(fillType1,fillType2)
Parameters
fillType1: (number, optional, default = Polygon.FILL_EVEN_ODD) fill rule for the subject polygons
fillType2: (number, optional, default = Polygon.FILL_EVEN_ODD) fill rule for the clip polygons
Return values
Returns (table) array of Polygon objects (1 indexed) with the resulting polygons. May be empty when there is no overlap
Example
local res = clipper:getIntersection(Polygon.FILL_EVEN_ODD, Polygon.FILL_EVEN_ODD)