An isometry between metric spaces (X,dX)(X,d_X) and (Y,dY)(Y,d_Y) is a map f ⁣:X→Yf\colon X\to Y such that for all x,x′∈Xx,x'\in X,

dY(f(x),f(x′))=dX(x,x′).d_Y\bigl(f(x),f(x')\bigr)=d_X(x,x').
Remarks

An isometry preserves all metric structure (in particular, it is and even with constant 11). A bijective isometry is a whose inverse is also an isometry.

Examples
  • In Rn\mathbb{R}^n with the Euclidean metric, translations x↦x+ax\mapsto x+a and orthogonal transformations are isometries.
  • If A⊆XA\subseteq X is given the restricted metric, the inclusion map A↪XA\hookrightarrow X is an isometry onto its image.