Say I have a 2 axis system $(x,y)\in \mathbb R^2$ and I want to transform it to a 1 axis system $(w)\in \mathbb R$ so order will be kept and there will be a bijection between them.
What would be the right way to do this?
$w=5x+7y$ won't work, neither will $w=17xy$ since those are real numbers.
Is it even possible to have a bijection between them, i.e to be able to go back to $(x,y)$ from $(w)$?
PS: order preservation is more important.
Furthermore, how can I use that transformation on distances? Say I want to know what is distance 1 from $(x,y)$ in $w$, so $5\sqrt{(a-x)^2}+7\sqrt{(b-y)^2} = 5u+7v$ and I know that $u+v=1$ so how can I find what is $5u+7v$?
Note: let's assume $\mathbb R^2$ is arbitrarily ordered by x, then by, i.e x tie breaker is y ordering.