openrndr / org.openrndr.binpack / PackNode

PackNode

class PackNode (source)

Constructors

<init>

PackNode(area: IntRectangle, parent: PackNode? = null)

Properties

area

val area: IntRectangle

children

var children: List<PackNode>

data

var data: Any?

freeArea

var freeArea: IntVector2

parent

val parent: PackNode?

taken

var taken: Boolean

Functions

hasTakenDecendents

fun hasTakenDecendents(): Boolean

isLeaf

fun isLeaf(): Boolean

populate

fun populate(data: Any? = null): Unit