/// <summary> /// Determines if there is an intersection between the current object and a <see cref="BoundingBox"/>. /// </summary> /// <param name="box">The box to test.</param> /// <returns>Whether the two objects intersected.</returns> public PlaneIntersectionType Intersects(ref BoundingBox box) { return(Collision.PlaneIntersectsBox(ref this, ref box)); }
/// <summary> /// Determines if there is an intersection between the current object and a <see cref="BoundingBox"/>. /// </summary> /// <param name="box">The box to test.</param> /// <returns>Whether the two objects intersected.</returns> public bool Intersects(BoundingBox box) { return(Intersects(ref box)); }
/// <summary> /// Determines whether the current objects contains a <see cref="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(Collision.SphereContainsBox(ref this, ref box)); }
/// <summary> /// Determines if there is an intersection between the current object and a <see cref="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)); }