开发者

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

开发者 https://www.devze.com 2023-03-06 15:33 出处:网络
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

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

精彩评论

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