kotcity4 / kotcity.data / Corners

Corners

data class Corners

Just a utility class for hanging onto a rectangle of BlockCoordinates

Constructors

<init>

Corners(topLeft: BlockCoordinate, bottomRight: BlockCoordinate, topRight: BlockCoordinate, bottomLeft: BlockCoordinate)

Just a utility class for hanging onto a rectangle of BlockCoordinates

Functions

includes

fun includes(block: BlockCoordinate): Boolean