idistancemetric interface