Search code examples
netlogohexagonal-tiles

NetLogo: World size as a decimal


In NetLogo, I'm trying to create a hexagonal grid where all of the hexagons are equilateral. While the examples in the models library create hexagonal grids, they aren't equilateral, so I can't use the same method that they did. In order to make this grid and still have the world wrap horizontally, I need to set the world's width to be a very specific decimal, but I can't find a way to set it to be anything but an integer. Is it possible to set the dimensions of the world to decimals? If so, how?


Solution

  • No, this is impossible. The world size is measured in patches, and the dimensions of a patch are always 1x1. There's no such thing as a partial patch.