Function closestPoint

Returns a point on the shape s closest to a query point p. If this point is not unique, an arbitrary choice is made.