memoriaki
8/28/2018 - 12:42 AM

Absolute coord position #snippet

Absolute coord position #snippet

    calcAbspos = (d) => Math.floor(Math.sqrt(d.row ** 2 + d.col ** 2));
    data[i].abspos = calcAbspos(data[i]);