Companion
object Companion
Functions
Link copied to clipboard
operator fun invoke(width: Double, height: Double, algo: BinPacker.Algo = MaxRects(width, height)): BinPacker
operator fun invoke(width: Float, height: Float, algo: BinPacker.Algo = MaxRects(width.toDouble(), height.toDouble())): BinPacker
operator fun invoke(width: Int, height: Int, algo: BinPacker.Algo = MaxRects(width.toDouble(), height.toDouble())): BinPacker
Link copied to clipboard
fun <T> packSeveral(maxSize: Size, items: Iterable<T>, getSize: (T) -> Size): List<BinPacker.Result<T>>