Point projected to the closest edge
Untested yet
ml transformation matrix of this Shape2D, mr transformation matrix of the point p