pub struct Zone<S> {
pub shape: S,
pub width: f64,
pub contacts: Vec<usize>,
pub optimal: bool,
}Expand description
A fitted zone.
Fields§
§shape: SThe zone’s middle: the plane halfway between the two planes, the circle, cylinder or sphere halfway between the two. For an inscribed or circumscribed fit, the fitted circle or cylinder itself; for straightness, the axis of the cylinder.
width: f64The zone’s width: the distance between its two boundaries. For an inscribed or circumscribed fit, the points’ greatest distance from the centre or axis less their least, their form about that reference; for straightness, the cylinder’s diameter.
contacts: Vec<usize>The points touching the zone’s boundaries, within the confusion distance, in index order.
optimal: boolWhether the zone is the optimum: always for the exact fits, and for the others where the first-order Chebyshev conditions hold.
Trait Implementations§
impl<S: PartialEq> StructuralPartialEq for Zone<S>
Auto Trait Implementations§
impl<S> Freeze for Zone<S>where
S: Freeze,
impl<S> RefUnwindSafe for Zone<S>where
S: RefUnwindSafe,
impl<S> Send for Zone<S>where
S: Send,
impl<S> Sync for Zone<S>where
S: Sync,
impl<S> Unpin for Zone<S>where
S: Unpin,
impl<S> UnsafeUnpin for Zone<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Zone<S>where
S: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.