SyTen

◆ mapM2x()

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

Meandering map flipped (2 sites):

y->
x 1 2 27 28 29 30
| 4 3 26 25 32 31
v 5 6 23 24 33 34
8 7 22 21 . .
9 10 19 20 . .
12 11 18 17 . .
13 14 15 16 . .
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 mapM2().

+ Here is the call graph for this function: