SyTen

◆ mapZ()

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

Z-like map:

y->
x 0 1 2 3
| 4 5 6 7
v 8 9 10 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.

Referenced by mapZx().

+ Here is the caller graph for this function: