Get the number of set coordinates.
the number of items.
Clear all elements from the coordinates.
Delete the element at the coordinate.
The coordinates to delete from the space.
true if an element in the Map existed and has been removed, or false if the element does not exist.
Determine if coordinates are set with a value.
The coordinates to check.
boolean indicating whether an element with the specified key exists or not.
Get the value at the provided offset.
The number of dimensions
The dimension to get the offset
The amount of offset
the value stored at the offset
Get all the neighbors of a coordinate.
The coordinates to convert.
a tupled array of Dimensions, Before/After, and Coordinate/Value pairs.
Convert coordinate map to a simple object for storage and testing.
An object representing all coordinates in the map. Keys are comma delineated coordinates.
PrivateencodeTake an array of numbers representing coordinates and convert them into a coordinate key.
the coordinates to convert.
A string storing the coordinates of the provided array.
PrivatedecodeTake a stored coordinate key and convert them back into numbers.
Joined and stringified coordinates.
An array of numbers representing the coordinates.
Privaterecurse
An abstraction on Map which provides helper functions and serialization for coordinate based storage and lookup.