示例#1
0
 /// <summary>
 ///
 /// </summary>
 public Octant(Octant <T> parent, Bounds3 bounds)
 {
     Bounds    = bounds;
     Influence = Bounds3.FromCenter(bounds.Center, bounds.Size * 3);
 }
示例#2
0
 public Octree(Vector3 center, float side)
 {
     Bounds = Bounds3.FromCenter(center, new Vector3(side));
     Root   = new Octant <T>(null, Bounds);
 }