Description: Mapping of the distance function of an extended metric. (Contributed by Mario Carneiro, 20-Aug-2015)