Struct RowCol
Represents a discrete location within the map grid.
Constructors
Name |
Description |
this
|
Construct a row column pair
|
Properties
Name |
Type |
Description |
adjacent
[set]
|
std.range.chain!(std.range.OnlyResult!(dtiled.coords.RowCol,1L).OnlyResult,std.range.OnlyResult!(dtiled.coords.RowCol,1L).OnlyResult,std.range.OnlyResult!(dtiled.coords.RowCol,1L).OnlyResult,std.range.OnlyResult!(dtiled.coords.RowCol,1L).OnlyResult,std.range.OnlyResult!(dtiled.coords.RowCol,1L).OnlyResult,std.range.OnlyResult!(dtiled.coords.RowCol,1L).OnlyResult,std.range.OnlyResult!(dtiled.coords.RowCol,1L).OnlyResult,std.range.OnlyResult!(dtiled.coords.RowCol,1L).OnlyResult) |
Return a range containing the coords adjacent to this coord.
|
east
[set]
|
RowCol |
Get a coordinate to the right of this coordinate
|
north
[set]
|
RowCol |
Get a coordinate above this coordinate
|
south
[set]
|
RowCol |
Get a coordinate below this coordinate
|
toString
[get]
|
string |
Get a string representation of the coordinate, useful for debugging
|
west
[set]
|
RowCol |
Get a coordinate to the left of this coordinate
|
Methods
Name |
Description |
opBinary
|
Add or subtract one coordinate from another
|