openrndr / org.openrndr.binpack / CenterOrderer

CenterOrderer

class CenterOrderer : Orderer (source)

Types

SortOption

data class SortOption

Constructors

<init>

CenterOrderer(enclosement: IntRectangle, reverse: Boolean = false)

Properties

enclosement

val enclosement: IntRectangle

reverse

val reverse: Boolean

Functions

order

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