/** * Constructs a bond with a given order and stereo orientation from an array * of atoms. * * @param beg the first Atom in the bond * @param end the second Atom in the bond * @param order the bond order * @param stereo a descriptor the stereochemical orientation of this bond */ public Bond(IAtom beg, IAtom end, Order order, IBond.Stereo stereo) { atoms[0] = beg; atoms[1] = end; setOrder(order); this.stereo = stereo; this.atomCount = 2; }
/** * Constructs a bond with a given order and stereo orientation from an array * of atoms. * * @param beg the first Atom in the bond * @param end the second Atom in the bond * @param order the bond order * @param stereo a descriptor the stereochemical orientation of this bond */ public Bond(IAtom beg, IAtom end, Order order, IBond.Stereo stereo) { atoms[0] = beg; atoms[1] = end; setOrder(order); this.stereo = stereo; this.atomCount = 2; }