timelinefx:timelinefx.tlPolygon.New
Method New:Void( )
Method New:Void( x:Float, y:Float, verts:Float[], layer:Int=0, data:@object=Null, centerhandle:Int=true )
Method New:Void( verts:Float[], layer:Int=0, data:@object=Null )
Constructor tlPolygon Constructor

| Note: | |:-----------| | Polygon must be convex (no internal angles > 180deg)

@param x Top left y coordinate @param y Top Left x coordinate @param verts Array of vertices that descibe the Polygon @param layer The layer that the box is on, used for quadtrees @param data any Object associated with the box

@example Local box:=New tlPolygon(100, 100, new Float[](- 10.0, -10.0, -15.0, 0.0, -10.0, 10.0, 10.0, 10.0, 15.0, 0.0, 10.0, -10.0), 0) @end tlPolygon Constructor

| Note: | |:-----------| | Polygon must be convex (no internal angles > 180deg)

@param verts Array of vertices that descibe the Polygon @param layer The layer that the box is on, used for quadtrees @param data any Object associated with the box

@example Local box:=New tlPolygon(new Float[](- 10.0, -10.0, -15.0, 0.0, -10.0, 10.0, 10.0, 10.0, 15.0, 0.0, 10.0, -10.0), 0) @end