Пример #1
0
 /// <summary>
 /// Determines if there is an intersection between the current object and a <see cref="Plane" />.
 /// </summary>
 /// <param name="plane">The plane to test.</param>
 /// <returns>Whether the two objects intersected.</returns>
 public PlaneIntersectionType Intersects(ref Plane plane)
 {
     return(CollisionsHelper.PlaneIntersectsSphere(ref plane, ref this));
 }
Пример #2
0
 /// <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 PlaneIntersectionType Intersects(ref BoundingSphere sphere)
 {
     return(CollisionsHelper.PlaneIntersectsSphere(ref this, ref sphere));
 }