pub struct DisplaceOptions {
pub min_distance: f64,
pub max_iterations: usize,
pub damping: f64,
pub convergence_tol: f64,
}Expand description
Options for the iterative displacement solver.
Fields§
§min_distance: f64Minimum required Euclidean distance between any two positions (coordinate units).
max_iterations: usizeMaximum number of repulsion iterations before stopping.
damping: f64Damping coefficient in (0, 1].
Smaller values yield more conservative per-iteration movements and
smoother convergence; values near 1 converge faster but may overshoot.
convergence_tol: f64Convergence tolerance: the solver stops early when the largest single-step displacement is smaller than this value.
Trait Implementations§
Source§impl Clone for DisplaceOptions
impl Clone for DisplaceOptions
Source§fn clone(&self) -> DisplaceOptions
fn clone(&self) -> DisplaceOptions
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 DisplaceOptions
impl Debug for DisplaceOptions
Auto Trait Implementations§
impl Freeze for DisplaceOptions
impl RefUnwindSafe for DisplaceOptions
impl Send for DisplaceOptions
impl Sync for DisplaceOptions
impl Unpin for DisplaceOptions
impl UnsafeUnpin for DisplaceOptions
impl UnwindSafe for DisplaceOptions
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