pub struct LayoutConfig {
pub dt: f32,
pub damping: f32,
pub repulsion: f32,
pub attraction: f32,
pub theta: f32,
pub gravity: f32,
pub ideal_length: f32,
pub use_barnes_hut: bool,
pub max_tree_depth: usize,
}Expand description
Configuration for the GPU layout.
Fields§
§dt: f32Time step per iteration.
damping: f32Damping factor (0-1).
repulsion: f32Repulsion strength.
attraction: f32Attraction strength.
theta: f32Barnes-Hut theta (0.5-1.0).
gravity: f32Center gravity strength.
ideal_length: f32Ideal edge length.
use_barnes_hut: boolUse Barnes-Hut (true) or simple O(n²) (false).
max_tree_depth: usizeMaximum quadtree depth.
Trait Implementations§
Source§impl Clone for LayoutConfig
impl Clone for LayoutConfig
Source§fn clone(&self) -> LayoutConfig
fn clone(&self) -> LayoutConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 LayoutConfig
impl Debug for LayoutConfig
Auto Trait Implementations§
impl Freeze for LayoutConfig
impl RefUnwindSafe for LayoutConfig
impl Send for LayoutConfig
impl Sync for LayoutConfig
impl Unpin for LayoutConfig
impl UnsafeUnpin for LayoutConfig
impl UnwindSafe for LayoutConfig
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