/// <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)); }
/// <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)); }