Claim: Let $(X,d)$ be a metric space. Let $U_{r}(a)\subset X$ with $\epsilon >0$ and $a\in X$. For every tow points $x,y\in U_{r}(a)$ there exist a continuous function $f:[0,1]\rightarrow X$ such that $f(0)=x$, $ f(1)=y$ and its image lies entirely in $U_{r}(a)$.
Proof:
Define $f:[0,1]\rightarrow U_{r}(a), t\mapsto x+t(y-x)$. Then $f(0)=x$ and $f(1)=y$.
I don't get the next step:
The entire image of $f$ lies in $U_r(a)$, because from $d(x,y)<1$ and $d(y,a)<1$ it follows: $$d(f(t),a))=||f(t)-a||=||x+t(y-x)-a||=|| (1-t)(x-a)+t(y-a) ||\\ \leq || (1-t)||x-a||+t||y-a||<(1-t)+t=1 \quad\quad q.e.d.$$
I understand the equivalence transformations, but it was only shown that $d(f(t),a)<1$ holds.But the proof is not elaborated further. Actually one has to show that for every $t\in[0,1]$, $d(f(t),a)<r$ holds, right?