This function computes the distance map of the
spatial region X using the rectangular distance metric
with aspect ratio asp. This metric is defined so that
the set of all points lying at most 1 unit away from the origin
(according to the metric) form a rectangle of width 1
and height asp.