levelz.matrix

Classes

CoordinateMatrix

Represents a corodinate matrix.

CoordinateMatrix2D

Represents a 2-Dimensional Coordinate Matrix.

CoordinateMatrix3D

Represents a 3-Dimensional Coordinate Matrix.

Module Contents

class levelz.matrix.CoordinateMatrix

Represents a corodinate matrix.

abstract property dimension

Return the dimension of the matrix.

abstract property coordinates

Return the coordinates of the matrix.

abstract property start

Return the starting coordinate for the matrix.

class levelz.matrix.CoordinateMatrix2D(minX: int, maxX: int, minY: int, maxY: int, start: levelz.coord.Coordinate2D)

Bases: CoordinateMatrix

Represents a 2-Dimensional Coordinate Matrix.

minX: int = 0

The minimum x-coordinate of the Matrix.

maxX: int = 0

The maximum x-coordinate of the Matrix.

minY: int = 0

The minimum y-coordinate of the Matrix.

maxY: int = 0

The maximum y-coordinate of the Matrix.

_start: levelz.coord.Coordinate2D
property dimension
Return the dimension of the matrix.
property coordinates
Return the coordinates of the matrix.
property start
Return the starting coordinate for the matrix.
__iter__()
__getitem__(index)
__str__()
__eq__(other)
static from_string(string: str)

Converts a string to a 2D Coordinate Matrix.

Parameters:

string (str) – The string to convert.

Returns:

The 2D Coordinate Matrix.

Return type:

CoordinateMatrix2D

class levelz.matrix.CoordinateMatrix3D(minX: int, maxX: int, minY: int, maxY: int, minZ: int, maxZ: int, start: levelz.coord.Coordinate3D)

Bases: CoordinateMatrix

Represents a 3-Dimensional Coordinate Matrix.

minX: int = 0

The minimum x-coordinate of the Matrix.

maxX: int = 0

The maximum x-coordinate of the Matrix.

minY: int = 0

The minimum y-coordinate of the Matrix.

maxY: int = 0

The maximum y-coordinate of the Matrix.

minZ: int = 0

The minimum z-coordinate of the Matrix.

maxZ: int = 0

The maximum z-coordinate of the Matrix.

_start: levelz.coord.Coordinate3D
property dimension
Return the dimension of the matrix.
property coordinates
Return the coordinates of the matrix.
property start
Return the starting coordinate for the matrix.
__iter__()
__getitem__(index)
__str__()
__eq__(other)
static from_string(string: str)

Converts a string to a 3D Coordinate Matrix.

Parameters:

string (str) – The string to convert.

Returns:

The 3D Coordinate Matrix.

Return type:

CoordinateMatrix3D