In Arnold's Mathematical Methods of Classical Mechanics, he says on page 6 the following are Galilean transformations on the Galilean coordinate space $\mathbb{R} \times \mathbb{R}^3$ where $\mathbb{R}$ is the time axis and $\mathbb{R}^3$ has a fixed Euclidian structure:
(1) Uniform motion with velocity $\mathbf{v} \colon$ $$g_1(t,\mathbf{x})=(t,\mathbf{x}+\mathbf{v}t)$$ (2) Translation of the origin: $$g_2(t,\mathbf{x})=(t+s,\mathbf{x}+\mathbf{s}),$$ (3) Rotation of the coordinate axes: $$g_3(t,\mathbf{x})=(t,G\mathbf{x}),$$ where $G \in O(3).$
He says that Galilean transformations are affine transformations of $A^4$ which preserve intervals of time and distance between simultaneous events. Why are the above transformations affine?
For transformation (1), above we can see that if $a,b \in A^4,$ then before the transformation we have, denoting $d$ to be the distance between two simultaneous events using the given Euclidian structure, $d(a,b)=\|a-b\|.$ But, from transformation (1) we have that, letting $f$ be the corresponding affine transformation, $f(a)-f(b)=g_1(a-b)$ implies that $d(f(a),f(b))=\|f(a)-f(b)\|=\|(x-y)+\mathbf{v}t\|$ which implies that $f$ does not preserve distance. What am I missing here?