pub enum Region {
Box(Aabb),
Sphere {
center: [f32; 3],
radius: f32,
},
}Expand description
A region of space, in mesh-local coordinates. Both shapes are closed: points on the boundary are inside.
Variants§
Box(Aabb)
An axis-aligned box. An empty box (Aabb::EMPTY) contains nothing.
Sphere
A ball. The center must be finite and the radius finite and not negative.
Trait Implementations§
impl Copy for Region
impl StructuralPartialEq for Region
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnsafeUnpin for Region
impl UnwindSafe for Region
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