An interface for classes which compute the distance between two points (where points are represented as arrays of doubles).