pub struct InsideBoxRegion {
pub min: [F; 3],
pub max: [F; 3],
}Expand description
Axis-aligned box region (inside test).
Fields§
§min: [F; 3]§max: [F; 3]Implementations§
Trait Implementations§
Source§impl Clone for InsideBoxRegion
impl Clone for InsideBoxRegion
Source§fn clone(&self) -> InsideBoxRegion
fn clone(&self) -> InsideBoxRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InsideBoxRegion
Source§impl Debug for InsideBoxRegion
impl Debug for InsideBoxRegion
Source§impl Region for InsideBoxRegion
impl Region for InsideBoxRegion
Source§fn contains(&self, x: &[F; 3]) -> bool
fn contains(&self, x: &[F; 3]) -> bool
Membership test. Must be consistent with
signed_distance(x) <= 0.Source§fn bounding_box(&self) -> Option<Aabb>
fn bounding_box(&self) -> Option<Aabb>
Axis-aligned bounding box of the region. Used as an initialization
hint; default
None is always safe.Auto Trait Implementations§
impl Freeze for InsideBoxRegion
impl RefUnwindSafe for InsideBoxRegion
impl Send for InsideBoxRegion
impl Sync for InsideBoxRegion
impl Unpin for InsideBoxRegion
impl UnsafeUnpin for InsideBoxRegion
impl UnwindSafe for InsideBoxRegion
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R> RegionExt for Rwhere
R: Region,
impl<R> RegionExt for Rwhere
R: Region,
fn and<B: Region>(self, other: B) -> And<Self, B>
fn or<B: Region>(self, other: B) -> Or<Self, B>
fn not(self) -> Not<Self>
Source§fn into_restraint(self) -> RegionRestraint<Self>
fn into_restraint(self) -> RegionRestraint<Self>
Lift this region into a soft-penalty
AtomRestraint. Equivalent
to wrapping in RegionRestraint manually.