let molecule = new Molecule();
molecule.getBond(atomOne /* type: Atom */, atomTwo /* type: Atom */);
atomOne
- The first atom involved in the bondatomTwo
- The second atom involved in the bondType: Object
The function returns the bond configuration.
const { Molecule } = require('mcul'); let molecule = new Molecule(); let atoms = molecule.createAtoms('C', 2); molecule.bond(atoms[0], atoms[1], {count: 2}); console.log(molecule.getBond(atoms[0], atoms[1]));