pub struct SimplifyOptions { /* private fields */ }
Expand description
Options for simplifying paths.
Implementations§
Source§impl SimplifyOptions
impl SimplifyOptions
Sourcepub fn opt_level(self, level: SimplifyOptLevel) -> SimplifyOptions
pub fn opt_level(self, level: SimplifyOptLevel) -> SimplifyOptions
Set optimization level.
Sourcepub fn angle_thresh(self, thresh: f64) -> SimplifyOptions
pub fn angle_thresh(self, thresh: f64) -> SimplifyOptions
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§
Source§impl Default for SimplifyOptions
impl Default for SimplifyOptions
Source§fn default() -> SimplifyOptions
fn default() -> SimplifyOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimplifyOptions
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
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.