private short getBondOrder(Atom atomA, float bondingRadiusA, Atom atomB, float bondingRadiusB, float distance2,
			float minBondDistance2, float bondTolerance) {
		if (bondingRadiusA == 0 || bondingRadiusB == 0)
			return 0;
		float maxAcceptable = bondingRadiusA + bondingRadiusB + bondTolerance;
		float maxAcceptable2 = maxAcceptable * maxAcceptable;
		if (distance2 < minBondDistance2) {
			return 0;
		}
		if (distance2 <= maxAcceptable2) {
			return 1;
		}
		return 0;
	}