bevy/crates/bevy_render/src/mesh/shape
Robin KAY bdd5cee92a 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 <rezural@protonmail.com>
2022-11-21 13:19:40 +00:00
..
capsule.rs Very minor doc formatting changes (#5287) 2022-07-12 13:06:16 +00:00
icosphere.rs Change From<Icosphere> to TryFrom<Icosphere> (#6484) 2022-11-14 22:34:27 +00:00
mod.rs Add Box::from_corners method (#6672) 2022-11-21 13:19:40 +00:00
regular_polygon.rs add Debug, Copy, Clone derives to Circle (#6009) 2022-09-18 02:03:10 +00:00
torus.rs Fix torus normals (#4520) 2022-04-26 18:42:43 +00:00
uvsphere.rs Mesh vertex buffer layouts (#3959) 2022-02-23 23:21:13 +00:00