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