public bool hasNext() { while (bsptIter == null || !bsptIter.hasMoreElements()) { if (--bsptIndex < 0) { bsptIter = null; return false; } bsptIter = Enclosing_Instance.bspf.getSphereIterator(bsptIndex); bsptIter.initialize(center, radius); } return true; }
public void initialize(int bsptIndex, Tuple center, float radius) { Enclosing_Instance.initializeBspf(); this.bsptIndex = bsptIndex; bsptIter = Enclosing_Instance.bspf.getSphereIterator(bsptIndex); this.center = center; this.radius = radius; bsptIter.initialize(center, radius); }