\~There's a way to convert an integral co-ordinate field into a spiral index number..
I want to convert 10,000 different co-ordinates with a range of over 1000 ( from (0,0) to more than (1000,1000) ) into single integers (just 'cause :P).The number and maximum range of the co-ordinates is variable.Does anyone know what this is called or how to do this efficiently?So (2,1) would become 9, (1,1)–>8, (2,2)–>24, etc. reminder: http://fuldans.se/how to convert co-ordinates into spiral# thing.?
Posted by noshenim on July 12, 2010, 12:36 p.m.
To both of you - work it out yourselves. You're not gonna get better at this unless you do some work.
Maybe I could run the function twice:
Ingenious! Juju, I applaud your ingenuity.