CoordinateMatrix2D

class CoordinateMatrix2D(val minX: Int = 0, val maxX: Int, val minY: Int = 0, val maxY: Int, val start: Coordinate2D) : CoordinateMatrix

Represents a 2D matrix of coordinates.

Constructors

Link copied to clipboard
constructor(minX: Int = 0, maxX: Int, minY: Int = 0, maxY: Int, start: Coordinate2D)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val coordinates: Set<Coordinate2D>

Gets all the coordinates in this matrix.

Link copied to clipboard
open override val dimension: Dimension

The dimension of the matrix.

Link copied to clipboard
val maxX: Int

The maximum x value of the matrix.

Link copied to clipboard
val maxY: Int

The maximum y value of the matrix.

Link copied to clipboard
val minX: Int = 0

The minimum x value of the matrix.

Link copied to clipboard
val minY: Int = 0

The minimum y value of the matrix.

Link copied to clipboard
open override val start: Coordinate2D

The starting coordinate of the matrix.

Functions

Link copied to clipboard
operator fun component1(): Int
Link copied to clipboard
operator fun component2(): Int
Link copied to clipboard
operator fun component3(): Int
Link copied to clipboard
operator fun component4(): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
operator override fun iterator(): Iterator<Coordinate>
Link copied to clipboard

Maps all the given coordinates to LevelObjects with the given block.

Link copied to clipboard
open override fun toString(): String

Gets the string version of this coordinate matrix.