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
Source§fn eq(&self, other: &BundleParams) -> bool
fn eq(&self, other: &BundleParams) -> bool
Tests for
self and other values to be equal, and is used by ==.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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more