pub struct VisvalingamWhyattPreserve;Expand description
Topology-preserving Visvalingam–Whyatt line simplification.
Uses the same area ranking as VisvalingamWhyatt, and applies the Davies
refinement when removing a vertex would introduce a self-intersection: the
preceding retained vertex is removed next so the transient crossing is
eliminated. The implementation uses an allocation-only quadratic scan,
keeping the strategy available in no_std builds.
Trait Implementations§
Source§impl Clone for VisvalingamWhyattPreserve
impl Clone for VisvalingamWhyattPreserve
Source§fn clone(&self) -> VisvalingamWhyattPreserve
fn clone(&self) -> VisvalingamWhyattPreserve
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 VisvalingamWhyattPreserve
Source§impl Debug for VisvalingamWhyattPreserve
impl Debug for VisvalingamWhyattPreserve
Source§impl Default for VisvalingamWhyattPreserve
impl Default for VisvalingamWhyattPreserve
Source§fn default() -> VisvalingamWhyattPreserve
fn default() -> VisvalingamWhyattPreserve
Returns the “default value” for a type. Read more
Source§impl<P, L> SimplifyStrategy<L> for VisvalingamWhyattPreservewhere
P: Point<Scalar = f64> + PointMut + Default + Copy,
L: Linestring<Point = P>,
<P::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
impl<P, L> SimplifyStrategy<L> for VisvalingamWhyattPreservewhere
P: Point<Scalar = f64> + PointMut + Default + Copy,
L: Linestring<Point = P>,
<P::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
Auto Trait Implementations§
impl Freeze for VisvalingamWhyattPreserve
impl RefUnwindSafe for VisvalingamWhyattPreserve
impl Send for VisvalingamWhyattPreserve
impl Sync for VisvalingamWhyattPreserve
impl Unpin for VisvalingamWhyattPreserve
impl UnsafeUnpin for VisvalingamWhyattPreserve
impl UnwindSafe for VisvalingamWhyattPreserve
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