pub enum SmoothingTolerance {
Uniform(f64),
PerAxis(Vec<f64>),
}Expand description
Absolute deviation limits for the axes selected for smoothing.
Tolerances are expressed in the corresponding input-coordinate units and
must be finite and strictly positive. A scalar tolerance is broadcast to all
selected axes; a vector tolerance follows the exact order of
SmoothingConfig::axes.
If axes is None, the selected order is 0..waypoints.nrows(). Therefore
a SmoothingTolerance::PerAxis vector then follows the natural matrix-row
order.
Variants§
Uniform(f64)
Broadcast one absolute tolerance to every selected axis.
For example, SmoothingTolerance::Uniform(1e-3) permits a deviation of
1e-3 in each selected axis’s own unit.
PerAxis(Vec<f64>)
Store one absolute tolerance per selected axis.
The vector length must equal the number of selected axes. With
axes = Some(vec![4, 0]), entries 0 and 1 apply to input rows 4
and 0, respectively.
Trait Implementations§
Source§impl Clone for SmoothingTolerance
impl Clone for SmoothingTolerance
Source§fn clone(&self) -> SmoothingTolerance
fn clone(&self) -> SmoothingTolerance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SmoothingTolerance
impl Debug for SmoothingTolerance
Auto Trait Implementations§
impl Freeze for SmoothingTolerance
impl RefUnwindSafe for SmoothingTolerance
impl Send for SmoothingTolerance
impl Sync for SmoothingTolerance
impl Unpin for SmoothingTolerance
impl UnwindSafe for SmoothingTolerance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable 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>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.