Open Caleb-Wishart opened 5 months ago
I completely forgot about orientation. A PR would be welcome, but if not then I'll get to it eventually.
I can get a PR done.
I've already implemented some of the BB functions for the mod I'm working on so can do the rest done soon. Will just get my mod stuff done first.
After working with orientation I found it's not often used or considered (even in some base game functions). Given no one else has noticed / interacted with this PR I don't imagine it's a common issue.
Was going to use flib bounding box function to do some transformations for a mod I am working on when I noticed that they do not preserve orientation.
With
flib_bounding_box.ceil(box)
for example:will result in
{ left_top = { x = 0, y = 0 }, right_bottom = { x = 1, y = 1}, }
Proposed solution for Ceil.
I haven't looked at a solution for the other functions yet as I wanted to see if this is something that would be accepted as a PR or if not preserving the orientation was an intention design choice because it seems like a lot of functions don't properly use orientation and can be confusing as to what ceil would actually mean when applied to a rotated object's coordinate system.