Function signedDistanceRect

Returns the distance between a rect and a point