MaxRectsBinPack

Undocumented in source.

Constructors

this
this(int width, int height, int padding)
Undocumented in source.

Members

Functions

FindPositionForNewNodeBestShortSideFit
recti FindPositionForNewNodeBestShortSideFit(int width, int height, int bestShortSideFit, int bestLongSideFit)
Undocumented in source. Be warned that the author may not have intended to support it.
Insert
bool Insert(recti rect, recti result)
Undocumented in source. Be warned that the author may not have intended to support it.
InsertArray
recti[] InsertArray(recti[] rects)
Undocumented in source. Be warned that the author may not have intended to support it.
Occupancy
float Occupancy()

Computes the ratio of used surface area.

PruneFreeList
void PruneFreeList()
Undocumented in source. Be warned that the author may not have intended to support it.
Reset
void Reset()
Undocumented in source. Be warned that the author may not have intended to support it.
SplitFreeNode
bool SplitFreeNode(recti freeNode, recti usedNode)
Undocumented in source. Be warned that the author may not have intended to support it.
placeRect
void placeRect(recti r)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

FindOptimalSize
vec2i FindOptimalSize(int tries, recti[] rects, int padding)
Undocumented in source. Be warned that the author may not have intended to support it.
FindOptimalSizeFast
vec2i FindOptimalSizeFast(long totalSize)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

freeRectangles
recti[] freeRectangles;
Undocumented in source.
height
int height;
Undocumented in source.
padding
int padding;
Undocumented in source.
usedRectangles
recti[] usedRectangles;
Undocumented in source.
width
int width;
Undocumented in source.

Meta