dimforge / parry

2D and 3D collision-detection library for Rust.
https://parry.rs
Apache License 2.0
565 stars 100 forks source link

Aabb wrt centre/issue #155 #182

Closed whatf0xx closed 6 months ago

whatf0xx commented 6 months ago

I wrote the function that would allow for an aabb to be scaled with respect to its centre instead of the origin ( Issue #155 ). I added a unit test as a sanity check that this was doing the right thing, but not anything comprehensive.

sebcrozet commented 6 months ago

Thanks! The implementation was a bit more complicated than necessary, so I simplified it.