RectBinPacker

Undocumented in source.

Constructors

this
this(uint width, uint height, uint x, uint y)
Undocumented in source.

Members

Functions

insert
Node* insert(ivec2 size)

Running time is linear to the number of rectangles already packed. Recursively calls itself. @Returns: null If the insertion didn't succeed.

occupancy
float occupancy()

@Returns: A value [0, 1] denoting the ratio of total surface area that is in use. 0.0f - the bin is totally empty, 1.0f - the bin is full.

Meta