Displacement function (source code)

= Displacement function
{title2=$d_g(x)$}

For an isometry $g$ of a metric space, its displacement function is $d_g(x)=d(x,gx)$. It is $2$-Lipschitz.