SyTen

◆ mapM2()

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

Meandering map (2 sites):

y->
x 1 4 5 8 9
| 2 3 6 7 10
v 19 18 15 14 11
20 17 16 13 12
. . . . .
. . . . .
. . . . .
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 mapM2x().

+ Here is the caller graph for this function: