Does anyone know whether the following is an elementary result in linear algebra (to be found in a undergrad book for example)?
Let $M: \mathbb{R}^d \rightarrow \mathbb{R}^d$ be a mapping. Then:
$M$ is affine ($M(x)=Ax+\gamma$, for some fixed matrix $A$ and vector $\gamma$) if and only if $M$ satisfies property (1) below
(1): for all $a,b,c,d$ in $\mathbb{R}^d$: $a-b = c-d\,\,$ implies $\,\,M(a)-M(b)=M(c)-M(d)$.
I'm not so much interested in a proof (unless the theorem would be false), but more in whether this is a generally known elementary result.
Edit: The first part of Property (1) is also called "arithmetic proportion" or "difference proportion". https://encyclopediaofmath.org/wiki/Arithmetic_proportion
Edit 2: I think this is related to the fact that affine transformations preserve parallelism, but it would go in both directions (i.e., preservation of parallelism -> affine)