def compute_distance(self, other, default=None):
<EOL>distances = self.compute_pointwise_distances(other, default=[])<EOL>if len(distances) == <NUM_LIT:0>:<EOL><INDENT>return default<EOL><DEDENT>return min(distances)<EOL>
Compute the minimal distance between the line string and `other`.

Parameters
----------
other : tuple of number \
        or imgaug.augmentables.kps.Keypoint \
        or imgaug.augmentables.LineString
    Other object to which to compute the distance.

default
    Value to return if this line string or `other` contain no points.

Returns
-------
float
    Distance to `other` or `default` if not distance could be computed.