/// <summary> /// Determines if there is an intersection between the current object and a <see cref="MyBoundingBox"/>. /// </summary> /// <param name="box">The box to test.</param> /// <returns>Whether the two objects intersected.</returns> public bool Intersects(ref MyBoundingBox box) { return(MyCollision.BoxIntersectsSphere(ref box, ref this)); }
/// <summary> /// Determines if there is an intersection between the current object and a <see cref="MyBoundingSphere"/>. /// </summary> /// <param name="sphere">The sphere to test.</param> /// <returns>Whether the two objects intersected.</returns> public bool Intersects(ref MyBoundingSphere sphere) { return(MyCollision.BoxIntersectsSphere(ref this, ref sphere)); }