pub struct OutsideSphereRegion {
pub center: [F; 3],
pub radius: F,
}Expand description
Outside-sphere region: !InsideSphereRegion with a bespoke impl so
signed_distance avoids the Not(...) double negation at call time.
Fields§
§center: [F; 3]§radius: FImplementations§
Trait Implementations§
Source§impl Clone for OutsideSphereRegion
impl Clone for OutsideSphereRegion
Source§fn clone(&self) -> OutsideSphereRegion
fn clone(&self) -> OutsideSphereRegion
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 OutsideSphereRegion
Source§impl Debug for OutsideSphereRegion
impl Debug for OutsideSphereRegion
Source§impl Region for OutsideSphereRegion
impl Region for OutsideSphereRegion
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 OutsideSphereRegion
impl RefUnwindSafe for OutsideSphereRegion
impl Send for OutsideSphereRegion
impl Sync for OutsideSphereRegion
impl Unpin for OutsideSphereRegion
impl UnsafeUnpin for OutsideSphereRegion
impl UnwindSafe for OutsideSphereRegion
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.