Skip to main content

shorten_bond

Function shorten_bond 

Source
pub fn shorten_bond(
    x1: f64,
    y1: f64,
    x2: f64,
    y2: f64,
    gap1: f64,
    gap2: f64,
) -> (f64, f64, f64, f64)
Expand description

Shorten a bond segment by end insets (same as Python bonds.shorten).