Returns a rectangle where the shortest length of rect will be equal to the longest length of to. The longest length of rect will be proportionally scaled to match the aspect ratio of rect. The returned rectangle will be centered within to.
rect
to
containFit
Returns a rectangle where the shortest length of
rectwill be equal to the longest length ofto. The longest length ofrectwill be proportionally scaled to match the aspect ratio ofrect. The returned rectangle will be centered withinto.