Distance Function

\[ f_r(x)= \left\{ \begin{matrix} \sqrt{1+m^2}\cdot x,&x \leq 0 \\ \sqrt{1+\frac{1}{4}m^2}\cdot x,&x> 0 \end{matrix} \right. \]