pub struct InsideSphereRegion {
pub center: [F; 3],
pub radius: F,
}Expand description
Spherical region (inside test).
Fields§
§center: [F; 3]§radius: FImplementations§
Trait Implementations§
Source§impl Clone for InsideSphereRegion
impl Clone for InsideSphereRegion
Source§fn clone(&self) -> InsideSphereRegion
fn clone(&self) -> InsideSphereRegion
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 InsideSphereRegion
Source§impl Debug for InsideSphereRegion
impl Debug for InsideSphereRegion
Source§impl Region for InsideSphereRegion
impl Region for InsideSphereRegion
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 InsideSphereRegion
impl RefUnwindSafe for InsideSphereRegion
impl Send for InsideSphereRegion
impl Sync for InsideSphereRegion
impl Unpin for InsideSphereRegion
impl UnsafeUnpin for InsideSphereRegion
impl UnwindSafe for InsideSphereRegion
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.