An isometry is a function that preserves a metric, either in the sense of a metric space or in the sense of a Riemannian manifold.
An isometry between metric spaces is a function between the underyling sets that respects the metrics in that . More explicitly, for any points in .
The same idea holds for extended quasi-pseudo-generalisations of metric spaces.
An isometry between Riemannian manifolds is a morphism between the underlying manifolds that respects the metrics in that . More explicitly, for any tangent vectors on .
Global isometries are the isomorphisms of metric spaces or Riemannian manifolds. An isometry is global if it is a bijection whose inverse is also an isometry. Bewteen metric spaces, isometries are necessarily injections and bijective isometries necessarily have isometries as inverses, so global isometries between metric spaces are also called surjective isometries; this does not work for Riemannian manifolds (where the inverse of an isometry need not be a morphism of manifolds), nor does it work for pseudometric spaces (where an isometry need not be injective).