Skip to main content

place_spoke

Function place_spoke 

Source
pub fn place_spoke(
    local: &[(f64, f64)],
    attach_idx: usize,
    neighbor_idx: Option<usize>,
    centroid: (f64, f64),
    angle: f64,
    stem_len: f64,
    bond_offset: f64,
) -> Vec<(f64, f64)>
Expand description

Rotate/translate local so attach sits at centroid + L·u(θ).

neighbor_idx is the first real spoke atom. Its bond is placed at angle + bond_offset (house chain zigzag is ±π/3, not collinear).