Struct kurbo::simplify::SimplifyOptions
source · pub struct SimplifyOptions { /* private fields */ }
Expand description
Options for simplifying paths.
Implementations§
source§impl SimplifyOptions
impl SimplifyOptions
sourcepub fn opt_level(self, level: SimplifyOptLevel) -> Self
pub fn opt_level(self, level: SimplifyOptLevel) -> Self
Set optimization level.
sourcepub fn angle_thresh(self, thresh: f64) -> Self
pub fn angle_thresh(self, thresh: f64) -> Self
Set angle threshold.
The tangent of the angle below which joins are considered smooth and not corners. The default is approximately 1 milliradian.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SimplifyOptions
impl Send for SimplifyOptions
impl Sync for SimplifyOptions
impl Unpin for SimplifyOptions
impl UnwindSafe for SimplifyOptions
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