packSorted

Same as pack, but requires rects to be sorted by their height (tallest first) for the following methods: - rows

Note that even for methods that don't require sorting, the results will still be inferior if the rectangles aren't sorted by height.

nothrow @nogc pure @safe
R[]
packSorted
(
R
)
(
scope return ref R[] rects
,
uint width
,
uint height
,,
uint padding = 0
)
if ()

Meta