Ejemplo n.º 1
0
 /// <summary>
 /// Determines if there is an intersection between the current object and a
 /// <see cref="BoundingSphere"/>.
 /// </summary>
 /// <param name="sphere">The sphere to test.</param>
 /// <returns>Whether the two objects intersected.</returns>
 public bool Intersects(ref BoundingSphere sphere)
 {
     return(Collision.BoxIntersectsSphere(ref this, ref sphere));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Determines if there is an intersection between the current object and a <see cref="SlimMath.BoundingBox"/>.
 /// </summary>
 /// <param name="box">The box to test.</param>
 /// <returns>Whether the two objects intersected.</returns>
 public bool Intersects(ref BoundingBox box)
 {
     return(Collision.BoxIntersectsSphere(ref box, ref this));
 }