コード例 #1
0
ファイル: Frame.cs プロジェクト: xuchuansheng/GenXSource
			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
ファイル: Frame.cs プロジェクト: xuchuansheng/GenXSource
            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);
			}