Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Box::from_corners method (#6672)
# Objective This add a ctor to `Box` to aid the creation of non-centred boxes. The PR adopts @rezural's work on PR #3322, taking into account the feedback on that PR from @james7132. ## Solution `Box::from_corners()` creates a `Box` from two opposing corners and automatically determines the min and max extents to ensure that the `Box` is well-formed. Co-authored-by: rezural <[email protected]>
- Loading branch information