Wrote signed distance function for 2D convex polygons