Пример #1
0
 /// <summary>
 /// Gets whether or not a specified <see cref="BoundingBox"/> intersects with this sphere.
 /// </summary>
 /// <param name="box">The box for testing.</param>
 /// <returns><c>true</c> if <see cref="BoundingBox"/> intersects with this sphere; <c>false</c> otherwise.</returns>
 public bool Intersects(BoundingBox box)
 {
     return(box.Intersects(this));
 }
Пример #2
0
 /// <summary>
 /// Gets whether or not a specified <see cref="BoundingBox"/> intersects with this sphere.
 /// </summary>
 /// <param name="box">The box for testing.</param>
 /// <param name="result"><c>true</c> if <see cref="BoundingBox"/> intersects with this sphere; <c>false</c> otherwise. As an output parameter.</param>
 public void Intersects(ref BoundingBox box, out bool result)
 {
     box.Intersects(ref this, out result);
 }
Пример #3
0
 /// <summary>
 /// Test if a bounding box is fully inside, outside, or just intersecting the sphere.
 /// </summary>
 /// <param name="box">The box for testing.</param>
 /// <param name="result">The containment type as an output parameter.</param>
 public void Contains(ref BoundingBox box, out ContainmentType result)
 {
     result = this.Contains(box);
 }