def match(cls, responses, targets) -> float:
        """Determine the normalized distance between two points."""
        try:
            responses = cls.parse_2d_point(responses)
            targets = cls.parse_2d_point(targets)
        except ValueError:
            return 0

        # Instead of normalizing by 1/sqrt(2), we just set it to 0 if the distance is above 1.
        return max(0, 1 - point_distance(responses, targets))
Determine the normalized distance between two points.
vlmeval/dataset/utils/megabench/scoring/xml_norm_point_distance.py