示例#1
0
			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;
			}
示例#2
0
            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);
			}