RowCol

Represents a discrete location within the map grid.

Constructors

this
this(coord_t row, coord_t col)

Construct a row column pair

Members

Functions

opBinary
RowCol opBinary(RowCol rhs)

Add, subtract, multiply, or divide one coordinate from another.

opBinary
RowCol opBinary(T rhs)

A coordinate can be multiplied or divided by an integer.

opOpAssign
void opOpAssign(T rhs)

Add, subtract, multiply, or divide one coordinate from another in place.

Properties

adjacent
Diagonals adjacent [@property setter]

Return a range containing the coords adjacent to this coord.

east
int east [@property setter]

Get a coordinate to the right of this coordinate

north
int north [@property setter]

Get a coordinate above this coordinate

south
int south [@property setter]

Get a coordinate below this coordinate

toString
string toString [@property getter]

Get a string representation of the coordinate, useful for debugging

west
int west [@property setter]

Get a coordinate to the left of this coordinate

Meta