Discover Packages
github.com/toy80/toy
utils
binpack
package
Version:
v0.0.0-...-b05aa3b
Opens a new window with list of versions in this module.
Published: Nov 3, 2019
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package binpack implement a 2D bin packing algorithm.
type Packer struct {
Rect
}
Unpack a bin, the rect must be one of the valid rects return by previous Pack call.
for minimize fragments, it is recommand to unpack rects in reverse order.
type Rect struct{ L, T, R, B int32 }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.