pub enum FitMethod {
LeastSquares,
MinimumZone,
Inscribed,
Circumscribed,
}Expand description
How a shape is fitted to measured points.
Variants§
LeastSquares
Orthogonal least squares: the mean shape.
MinimumZone
The middle of the narrowest zone holding every point (flatness, straightness, circularity, cylindricity, sphericity).
Inscribed
The largest circle or cylinder with every point outside it (a hole’s mating size).
Circumscribed
The smallest circle or cylinder with every point inside it (a boss’s mating size).
Trait Implementations§
impl Copy for FitMethod
Source§impl<'de> Deserialize<'de> for FitMethod
impl<'de> Deserialize<'de> for FitMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FitMethod
impl StructuralPartialEq for FitMethod
Auto Trait Implementations§
impl Forget for FitMethod
impl Freeze for FitMethod
impl Move for FitMethod
impl RefUnwindSafe for FitMethod
impl Send for FitMethod
impl Sync for FitMethod
impl Unpin for FitMethod
impl UnsafeUnpin for FitMethod
impl UnwindSafe for FitMethod
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