Let $A,B$ be two convex compact subsets with non-empty interior in a Euclidean space $\mathbb{R}^n$. Let $f\colon A\to B$ be a bijective isometry between them.
Does there exist an isometry $F\colon \mathbb{R}^n\to \mathbb{R}^n$ such that its restriction to $A$ is equal to $f$?
Remark. Necessarily $F$ is a composition of translation and orthogonal transformation.
A reference would be helpful.