New geometric functions to compute distances.