mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
bdd5cee92a
# 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 <rezural@protonmail.com> |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml |