Point3f getAveragePosition(int atomIndex1, int atomIndex2) {
		Atom atom1 = atoms[atomIndex1];
		Atom atom2 = atoms[atomIndex2];
		return new Point3f((atom1.x + atom2.x) / 2, (atom1.y + atom2.y) / 2, (atom1.z + atom2.z) / 2);
	}