Polygon.new

From GiderosMobile

Available since: Gideros 2015.03.22
Class: Clipper

Description

Creates an empty polygon.

(Polygon) = Polygon.new()

Return values

Returns (Polygon) the new polygon

Example

local poly = Polygon.new()
poly:addPoint(0, 0)
poly:addPoint(100, 0)
poly:addPoint(100, 100)
poly:addPoint(0, 100)