SyTen

◆ mapZx()

Index syten::SQL::Helpers::mapZx ( int  x,
int  y,
int  l,
int  w 
)

Z-like map; x and y exchanged:

y->
x 0 6 12 .
| 1 7 13 .
v 2 8 14 .
3 9 . .
4 10 . .
5 11 . .
Parameters
xlength-coordinate, [0, l-1]
ywidth-coordinate, [0, w-1]
llength, [1, …)
wwidth, [1, …)
Returns
0-indexed offset from the start if x != -1 != y and 0 denoting a non-diagonal lattice if x == -1 == y.

References mapZ().

+ Here is the call graph for this function: