Compute the distance to the shortest point to the edge (SDF). Negative inside. Positive outside.
Untested yet
ml transformation matrix of this Shape2D, mr transformation matrix of the point p