Static methods

staticmakeClockwise(polygon:Array<Float>):Void

Constructor

new()

Variables

@:value(new Array<Int>())clippedTriangles:Array<Int> = new Array<Int>()

@:value(new Array<Float>())clippedVertices:Array<Float> = new Array<Float>()

Methods

clip(x1:Float, y1:Float, x2:Float, y2:Float, x3:Float, y3:Float, clippingArea:Array<Float>, output:Array<Float>):Bool

Clips the input triangle against the convex, clockwise clipping area. If the triangle lies entirely within the clipping area, false is returned. The clipping area must duplicate the first vertex at the end of the vertices list.

clipEnd():Void

clipTriangles(vertices:Array<Float>, verticesLength:Int, triangles:Array<Int>, trianglesLength:Int, uvs:Array<Float>, light:Color, dark:Color, twoColor:Bool):Void

isClipping():Bool