• Distance to a rectangle: 0 anywhere inside when filled, otherwise the distance to the nearest edge. An unfilled rect must stay grabbable only by its outline, or it would swallow every click in its interior.

    Parameters

    Returns number