MUD-Dev
mailing list archive

[ Other Periods  | Other mailing lists  | Search  ]

Date:  [ Previous  | Next  ]      Thread:  [ Previous  | Next  ]      Index:  [ Author  | Date  | Thread  ]

[MUD-Dev] X, Y & Z.



Coo... my first post after being a lurker here for quite a while :)

I'm after a formula for producing a single unique number, given any
combination
of 3 large other numbers (all unsigned long integers) - those being X,Y & Z
grid
coordinates. I can do this easily using just X & Y, and given defined
WORLD_WIDTH
& WORLD_HEIGHT values, but the extra Z coordinate has got me stumped.

Apologies if i've not explained this very well, and thanks in advance for
any
suggestions if I have. :)


Scott Cade.




[ Other Periods  | Other mailing lists  | Search  ]