Axis Aligned Bounding Box
It would be convenient to have a class that represents a 3D Axis Aligned Bounding Box (2D would also be convenient).
Currently there are methods such as GetTightBBox or others that return the 2 points separately.
Then there are many Utility methods to process the points thus obtained (such as IntersectionBox, IsPointInside, ...) as well as methods to get the 2 points from a set of points.
A special class would allow all these utility methods to be centralized, making them much easier and more convenient to use.
I propose methods such as: Move, Union, Enlarge, Intersect, Contains, GetCenter, SizeX, SizeY, SizeZ, MaxSize, MinSize, ...
Not to be confused with an Oriented Boundig Box, which would be very interesting, but also much more complex to manage.
Comments
Please sign in to leave a comment.