pub struct BundleParams {
pub subdivisions: usize,
pub iterations: usize,
pub step: f32,
pub stiffness: f32,
pub compat_threshold: f32,
}Expand description
FDEB tuning. Default bundles moderately on a unit-ish coordinate scale.
Fields§
§subdivisions: usizeInterior control points per edge (the wire’s flexibility). Endpoints are extra.
iterations: usizeForce-application iterations.
step: f32Per-iteration step size (how far a control point moves per step).
stiffness: f32Global spring stiffness holding a wire’s own points evenly spaced.
compat_threshold: f32Compatibility floor — edge pairs below this don’t attract (the precompute prune).
Trait Implementations§
Source§impl Clone for BundleParams
impl Clone for BundleParams
Source§fn clone(&self) -> BundleParams
fn clone(&self) -> BundleParams
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 BundleParams
Source§impl Debug for BundleParams
impl Debug for BundleParams
Source§impl Default for BundleParams
impl Default for BundleParams
Source§impl PartialEq for BundleParams
impl PartialEq for BundleParams
impl StructuralPartialEq for BundleParams
Auto Trait Implementations§
impl Freeze for BundleParams
impl RefUnwindSafe for BundleParams
impl Send for BundleParams
impl Sync for BundleParams
impl Unpin for BundleParams
impl UnsafeUnpin for BundleParams
impl UnwindSafe for BundleParams
Blanket Implementations§
impl<T> Allocation for T
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