add computation of the distance for a point