Axiom.Math.Sphere.Intersects C# (CSharp) Method

Intersects() public method

Returns whether or not this sphere interects a box.
public Intersects ( AxisAlignedBox box ) : bool
box AxisAlignedBox
return bool
		public bool Intersects( AxisAlignedBox box )
		{
			return Utility.Intersects( this, box );
		}

Same methods

Sphere::Intersects ( Plane plane ) : bool
Sphere::Intersects ( Sphere sphere ) : bool
Sphere::Intersects ( Vector3 vector ) : bool

Usage Example

Ejemplo n.º 1
0
 /// <summary>
 /// /
 /// </summary>
 /// <param name="sphere"></param>
 /// <param name="terrainList"></param>
 public void SphereIntersects(Sphere sphere, out List<Terrain> terrainList)
 {
     terrainList = new List<Terrain>();
     foreach (TerrainSlot i in _terrainSlots.Values)
     {
         if (i.Instance != null && sphere.Intersects(i.Instance.WorldAABB))
             terrainList.Add(i.Instance);
     }
 }
All Usage Examples Of Axiom.Math.Sphere::Intersects