开发者

Way to add rectangles to get the bounds of all the rectangles

Is there a way to add a grid of rectangles together so that you can get a "containe开发者_如何学Pythonr" rectangle (the bounds) of all the rectangles put together?


Look at the union function from the Rectangle class

Union : Adds two rectangles together to create a new Rectangle object, by filling in the horizontal and vertical space between the two rectangles.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜