Suppose I have a line segment along a unit vector $\ell$ (so $-\ell$ is equally valid) and a vector $v$.
If I want to perturb $v$ towards $\ell$, I can just add a vector $\vec{d}=\alpha(\ell-v)$ to $v$.
However, suppose I want to perturb $v$ to the closer of $\ell$ and $-\ell$. I.e. choose $d$ such that $$ \vec{d} = \alpha(f - v) $$ where $$ f = \arg\min_{r\in\{f,-f\}} ||r-v|| $$
In other words, I want to perturb $v$ to the closer of $f$ and $-f$.
Is it possible to write this without taking the min or using an "if"?