Consider two
real numbersa and b greater than zero and smaller than 1. One can interleave the sequences of digits of a and b, which will determine a third number c, also greater than zero and smaller than 1. In this way one obtains an
injection from the square (0, 1) × (0, 1) to the
interval (0, 1). Different
radixes give rise to different injections; the one for the
binary numbers is called the
Z-order curve or Morton code.[2]
Consider two
real numbersa and b greater than zero and smaller than 1. One can interleave the sequences of digits of a and b, which will determine a third number c, also greater than zero and smaller than 1. In this way one obtains an
injection from the square (0, 1) × (0, 1) to the
interval (0, 1). Different
radixes give rise to different injections; the one for the
binary numbers is called the
Z-order curve or Morton code.[2]