openrndr / org.openrndr.binpack / CenteredBinarySplitter

CenteredBinarySplitter

class CenteredBinarySplitter : Splitter (source)

Constructors

<init>

CenteredBinarySplitter(enclosement: IntRectangle, invert: Boolean = true, constraints: (node: PackNode, rectangle: IntRectangle) -> Boolean = { _, _ -> true }, xcon: (node: PackNode, rectangle: IntRectangle) -> Boolean = { _, _ -> true}, ycon: (node: PackNode, rectangle: IntRectangle) -> Boolean = { _, _ -> true})

Properties

constraints

val constraints: (node: PackNode, rectangle: IntRectangle) -> Boolean

enclosement

val enclosement: IntRectangle

invert

val invert: Boolean

xcon

val xcon: (node: PackNode, rectangle: IntRectangle) -> Boolean

ycon

val ycon: (node: PackNode, rectangle: IntRectangle) -> Boolean

Functions

split

fun split(node: PackNode, rectangle: IntRectangle): List<PackNode>