3 ms·
I think it’s because the centre is computed using the X and Y axis, and the rotated shapes have a different bounding box on those axes.
by glenjamin 5y ago
I think it’s because the centre is computed using the X and Y axis, and the rotated shapes have a different bounding box on those axes.
- lainga 5y agoWhy would you use bounding boxes for computing centres!
- mooneater 5y agoPresumably for speed
- ulber 5y agoMore likely ease of implementation. The use case shown here is an interactive UI element, so performance isn't really a concern.
- mkl 5y agoYou probably already have xy bounding boxes for every element and the selection itself as it helps with selecting, drawing, etc., so using them is the easiest option.
- bsder 5y agoComputational geometry is hard. Let's go shopping! If I'm being less un-charitable, the reason is that this bug is way down the list of priorities and fixing it with a proper solution is a lot of code and work that won't result in any new revenue.