Skip to main content

spoke_angle_energy

Function spoke_angle_energy 

Source
pub fn spoke_angle_energy(
    theta: f64,
    centroid: (f64, f64),
    bond_len: f64,
    ring_xy: &[(i32, f64, f64)],
    bonds: &[(i32, i32)],
    disk: f64,
    bisectors: &[f64],
    taken: &[f64],
    obstacles: &[(f64, f64)],
) -> f64
Expand description

Energy of a stem angle: hard no-cross of ring atoms, soft snap to a bisector.