On Tiles and Rotations (Three.js)
Select a preset and click on "execute function".
- "i" is the column number (x-coordinate) and "j" is the row number (y-coordinate) of a tile. i and j are between 0 and "# of tiles" - 1.
- "n%m" is n modulus m: 5%3 = 2.
- "(i<2 || j>3) ? 1 : -1" means "if i is less than 2 or j is greater than 3, then return 1, otherwise return -1. "&&" means "and".