I have two high dimensional unit vectors $\vec a$ and $\vec b $ and the distance $d$ between them.
I want to change the vector $\vec a$ so that it is still a unit vector but the distance to $\vec b $ is now $d'$ .
I already tried it this way: $$\vec a' = \vec a + ( \vec b - \vec a * (1 - \frac {d'}{d}))$$
But then the new vector does not have unit length.
Anyone any idea?
Thank you in advance.
First of all, it should be clear that what you are trying to do is impossible if $d'>2$, since
$$d' = \|\vec{a}' - \vec b\|\leq \|\vec{a}'\| + \|\vec b\| = 2$$
Second of all, if $d'\leq 2$, then any vector $\vec x = [x_1,\dots ,x_n]$ that satisfies the equation
$$\sqrt{(x_1-b_1)^2 + \cdots + (x_n-b_n)^n} = d'$$
is at a distance $d'$ from the vector $\vec b$. This means that there is an entire hypersphere of possibilities for $a'$.