MaxRectanglesBinPack @author DUZENGQIANG @date Jun 7, 2012 @version 1.0

SinaMicroBlog: http://weibo.com/duzengqiang

*

blog: http://www.duzengqiang.com

Constructor

@:value({ rotations : true })new (width:Int, height:Int, rotations:Bool = true)

Variables

@:value(false)allowRotations:Bool = false

@:value(0)binHeight:Int = 0

@:value(0)binWidth:Int = 0

freeRectangles:Array<Rectangle>

usedRectangles:Array<Rectangle>

Methods

insert (width:Int, height:Int, method:FreeRectangleChoiceHeuristic):Rectangle

Insert a new Rectangle @return

Parameters:

width
height
method