Different methods for encoding 3D positions as single number?

77 Views Asked by At

The obvious one is modulation/multiplication of each axis by different pitch, or dedicating different bits for each axis (in computer terms)

But are there known smarter methods? i.e. normalized distribution where the higher number the higher length/distance of the position, via some kind of fibonnaci sequence based algoritm? In simple terms, some kind "equation" that distributes encoded points evenly in each direction with steadily increasing radius.

If such exists, are they useful or limited? Can you calculate radius or add two positions without decoding the number back into 3D axis?

Note: I couldn't find much about this on google (not fully sure which terms to use for this)

1

There are 1 best solutions below

0
On

I think the way most software is build it is much easier to just use 3 different numbers. Clever software allows you to treat the 3 numbers as a vector and do vector/ matrix based operation with them. That seems to be a lot more helpful than encoding the three numbers into one.

One could define a number of differnt ways to encode 3 numbers into one but as far as I know none of them are in any way useful for applications.