Skip to main content

label_side

Function label_side 

Source
pub fn label_side(atom: (f64, f64), neighbors: &[(f64, f64)]) -> LabelSide
Expand description

Orient a label from the sum of neighbor vectors (SVG +Y down).

Matches RDKit getAtomOrientation (70° vertical slope; degree-1 prefers E/W; degree-0 defaults East except O/F/S/Cl-class → West).