Returns a rectangle where each side of rect will be reduced proportionally to have an area less than or equal to the provided to value. The returned rectangle will be centered within the original bounds of rect.
rect
to
the maximum area this rectangle can have
the rectangle to scale to fit the specified area
Returns a rectangle where each side of
rectwill be reduced proportionally to have an area less than or equal to the providedtovalue. The returned rectangle will be centered within the original bounds ofrect.