Is there a continuous map from $\pi: \mathbb{R}^n \rightarrow \mathbb{R}^{n-1}$ that is $(\sim_n, \sim_{n-1})$-invariant where $\sim_n$ is the equivalence relation of equality up to orthogonal transformation, i.e. for each $a,b \in \mathbb{R}^n$, $\|a\| = \|b\|$ implies that $\|\pi(a)\| = \|\pi(b)\|$?
I don't have a lot of background in topology or geometry so maybe the answer can be found by applying some basic result.
I am working on a dimension reduction idea and was considering the map $\pi: \mathbb{R}^n \setminus A_n \rightarrow \mathbb{R}^2$, defined everywhere outside the $n$-th coordinate axis $A_n$, given by $$\pi(a) = \|a\|\pi_{-1}(a) / \|\pi_{-1}(a)\|$$ where $\pi_{-1}: \mathbb{R}^{n} \rightarrow \mathbb{R}^{n-1}$ is just the projection onto the first $n-1$ coordinates $\pi_{-1}(a_1, \ldots, a_n) = (a_1, \ldots, a_{n-1})$.
I don't think it can be continuously extended either since for example, when $n = 2$, the map takes spheres of radius $r$ (except north/south poles) to their equator but cannot be continuously extended.
I might still be able to make this work for my purposes, but just wanted to check if there were any continuous everywhere defined maps or if it is not possible.
As mentioned in the comments, there are a bunch of possible maps. For example all constant maps have the property, but those are typically not very useful.
Here are some more interesting examples, all with the slightly stronger property $\Vert \pi(x) \Vert = \Vert x \Vert$.
First the map $\mathbb{R}^n \rightarrow \mathbb{R}^{n-1}, x \mapsto \Vert x \Vert e_1.$
Secondly, a map that is similar in spirit, but preserves a bit more structure $\mathbb{R}^n\rightarrow \mathbb{R}^{n-1}, (x_1, \dots, x_n) \mapsto (x_1, \dots, x_{n-2}, \Vert (x_{n-1}, x_n)\Vert)$.