On the distance function in domains with boundary | Synapse