Cluster

data class Cluster<T : Any>(val identifier: Int, val blocks: List<Cluster.Block<T>>) : Rectangle

Constructors

Link copied to clipboard
constructor(identifier: Int, blocks: List<Cluster.Block<T>>)

Types

Link copied to clipboard
data class Block<T : Any>(var x: Int, var y: Int, val size: Int, val payload: T) : Rectangle

Properties

Link copied to clipboard
Link copied to clipboard
open override val h: Int
Link copied to clipboard
Link copied to clipboard
open override val w: Int
Link copied to clipboard
open override val x: Int
Link copied to clipboard
open override val y: Int

Functions

Link copied to clipboard
open fun contains(x: Int, y: Int): Boolean
Link copied to clipboard

Returns whether the rectangle is adjacent or overlaps with the other.