isodi.position

Members

Aliases

Position
alias Position = Tuple!(int, "x", int, "y", int, "layer", Height, "height")

Denotes an object's position.

UniquePosition
alias UniquePosition = Tuple!(int, "x", int, "y", int, "layer")

Unique values for locating an object in the 3D space.

positionSort
alias positionSort = multiSort!positionSortArgs

Sort Object3Ds by position.

Functions

position
Position position(int x, int y, int layer, Height height)

Create a position tuple.

position
Position position(int x, int y, Height height, int layer)

Create a position tuple.

positionOff
Position positionOff(int x, int y, Height height)

Create an offset tuple.

sum
Position sum(Position a, Position b)
Undocumented in source. Be warned that the author may not have intended to support it.
toUnique
inout(UniquePosition) toUnique(Position position)

Get the unique position from a Position tuple.

Structs

Height
struct Height

Represents the height of a cell

Meta