Example #1
0
 /// <summary>
 /// Determines whether the current objects contains a <see cref="Stride.Core.Mathematics.BoundingBox"/>.
 /// </summary>
 /// <param name="box">The box to test.</param>
 /// <returns>The type of containment the two objects have.</returns>
 public ContainmentType Contains(ref BoundingBox box)
 {
     return(CollisionHelper.SphereContainsBox(ref this, ref box));
 }
Example #2
0
 /// <summary>
 /// Determines if there is an intersection between the current object and a <see cref="Stride.Core.Mathematics.BoundingBox"/>.
 /// </summary>
 /// <param name="box">The box to test.</param>
 /// <returns>Whether the two objects intersected.</returns>
 public bool Intersects(ref BoundingBox box)
 {
     return(CollisionHelper.BoxIntersectsSphere(ref box, ref this));
 }