Function to find the displacement for a torus landscape, using wrap around in the landscape
1 | find.disp(i.pos, disp, d.pe, d.ne, n)
|
i.pos |
Position of the cell in the landscape |
disp |
Total displacement to be applied |
d.pe |
Distance to the positive edge (top or right) |
d.ne |
Distance to the negative edge (bottom or left) |
n |
Dimension of the landscape |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.