Enum RectangularDirection
Represents the 26 possible neighbor directions in a rectangular-prism 3x3x3 grid. The integer ordering is used for neighbor indexing and deterministic preferences.
public enum RectangularDirection
Fields
Above = 5(0, 1, 0)
AboveEast = 16(1, 1, 0)
AboveNorth = 17(0, 1, 1)
AboveNorthEast = 25(1, 1, 1)
AboveNorthWest = 23(-1, 1, 1)
AboveSouth = 15(0, 1, -1)
AboveSouthEast = 24(1, 1, -1)
AboveSouthWest = 22(-1, 1, -1)
AboveWest = 14(-1, 1, 0)
Below = 4(0, -1, 0)
BelowEast = 12(1, -1, 0)
BelowNorth = 13(0, -1, 1)
BelowNorthEast = 21(1, -1, 1)
BelowNorthWest = 19(-1, -1, 1)
BelowSouth = 11(0, -1, -1)
BelowSouthEast = 20(1, -1, -1)
BelowSouthWest = 18(-1, -1, -1)
BelowWest = 10(-1, -1, 0)
East = 2(1, 0, 0)
None = -1No linear direction from source
North = 3(0, 0, 1)
NorthEast = 9(1, 0, 1)
NorthWest = 7(-1, 0, 1)
South = 1(0, 0, -1)
SouthEast = 8(1, 0, -1)
SouthWest = 6(-1, 0, -1)
West = 0(-1, 0, 0)