Hey guys! This is perhaps more of a math problem...
I'm working on a project which involves something like land plots, which can each be represented by an x and z coordinate (shown in black below). I also want to be able to represent each plot with a single number, which sorta makes a spiral pattern (shown in red below).
I'm trying to figure out the best way to convert from black to red numbers, and from red back to black numbers. It feels like there should be some simple solution, but after scratching my head for a few hours I decided I might as well ask for some guidance 😅
Any help is much appreciated :)