def point_in_map(cls, point):
        """
        Return if the point is in the map region
        Args:
            map_center: center point of the map
            point: 2D point

        Returns: Boolean

        """
        x_, y_ = point[:2]
        x = y = cls.map_region_size / 2
        return -x <= x_ <= x and -y <= y_ <= y

        Return if the point is in the map region
        Args:
            map_center: center point of the map
            point: 2D point

        Returns: Boolean

        
metadrive/constants.py