pub struct SnapRoundingOptions {
pub precision: f64,
pub max_iterations: usize,
}Expand description
Options controlling snap rounding behaviour.
All output coordinates produced by snap_round are exact multiples of
precision on both axes.
Fields§
§precision: f64Grid cell size (epsilon).
All output coordinates are multiples of this value. Must be strictly positive. Typical values:
1e-6for geographic (degree) coordinates0.01for centimetre-precision projected coordinates1.0for integer grid coordinates
max_iterations: usizeMaximum propagation iterations (default 8).
Each pass may introduce new intersection points that themselves need snapping and may lie on other segments. The algorithm terminates when no new points are found or this limit is reached.
Trait Implementations§
Source§impl Clone for SnapRoundingOptions
impl Clone for SnapRoundingOptions
Source§fn clone(&self) -> SnapRoundingOptions
fn clone(&self) -> SnapRoundingOptions
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 moreSource§impl Debug for SnapRoundingOptions
impl Debug for SnapRoundingOptions
Auto Trait Implementations§
impl Freeze for SnapRoundingOptions
impl RefUnwindSafe for SnapRoundingOptions
impl Send for SnapRoundingOptions
impl Sync for SnapRoundingOptions
impl Unpin for SnapRoundingOptions
impl UnsafeUnpin for SnapRoundingOptions
impl UnwindSafe for SnapRoundingOptions
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