2D signed distance function