[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

7203: [MUD-Dev] X, Y & Z.

[Full Header] [Plain Text]
From: Scott Cade <scade@protocol.co.uk>
Newsgroups: nu.kanga.list.mud-dev
Date: Fri, 11 Sep 1998 18:01:17 +0100
Organization: Kanga.Nu
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.