pub enum Bounds {
Point,
Sphere {
radius: f32,
},
Aabb {
half_extents: Vec3,
},
}Expand description
Entity bounds for spatial indexing and AOI overlap.
Variants§
Point
Point-sized entity.
Sphere
Spherical entity bounds.
Aabb
Axis-aligned entity bounds represented by half extents.
Implementations§
Trait Implementations§
impl Copy for Bounds
impl StructuralPartialEq for Bounds
Auto Trait Implementations§
impl Freeze for Bounds
impl RefUnwindSafe for Bounds
impl Send for Bounds
impl Sync for Bounds
impl Unpin for Bounds
impl UnsafeUnpin for Bounds
impl UnwindSafe for Bounds
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more