MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
[MUD-Dev] Re: X, Y & Z.
On Fri, 11 Sep 1998, Scott Cade wrote:
> 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. :)
I unless I mis-understand, you cannot do this. You must have as many bits
(information) in your result as in your input(s) if you want a one-to-one
mapping.
I don't think that is what you want however, so please re-word your
question..let us know what you are really trying to do.
Ben
>
>
> Scott Cade.
>
> --
> MUD-Dev: Advancing an unrealised future.
>
Ben Greear (greear#cyberhighway,net) http://www.primenet.com/~greear
Author of ScryMUD: mud.primenet.com 4444
http://www.primenet.com/~greear/ScryMUD/scry.html
- Thread context:
- [MUD-Dev] An accidental experiment with language,
Damion Schubert zjiria#texas,net, Sat 12 Sep 1998, 05:35 GMT
- [MUD-Dev] Equipment fit revisited,
Andy Cink ranthor#earthlink,net, Sat 12 Sep 1998, 00:00 GMT
- [MUD-Dev] X, Y & Z.,
Scott Cade scade#protocol,co.uk, Fri 11 Sep 1998, 17:22 GMT
- [MUD-Dev] Re: X, Y & Z.,
J C Lawrence claw#under,engr.sgi.com, Fri 11 Sep 1998, 17:42 GMT
- [MUD-Dev] Re: X, Y & Z.,
Ben Greear greear#cyberhighway,net, Fri 11 Sep 1998, 22:53 GMT
- [MUD-Dev] Re: Windows->Linux TCP/IP stack performance problems,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Fri 11 Sep 1998, 02:42 GMT
- [MUD-Dev] Windows->Linux TCP/IP stack performance problems,
J C Lawrence claw#under,engr.sgi.com, Thu 10 Sep 1998, 22:34 GMT
[ Other Periods
| Other mailing lists
| Search
]