예제 #1
0
 /// <summary>
 /// Creates the smallest <see cref="BoundingSphere"/> that can contain a specified <see cref="BoundingFrustum"/>.
 /// </summary>
 /// <param name="frustum">The frustum to create the sphere from.</param>
 /// <returns>The new <see cref="BoundingSphere"/>.</returns>
 public static BoundingSphere CreateFromFrustum(BoundingFrustum frustum)
 {
     return(CreateFromPoints(frustum.GetCorners()));
 }
예제 #2
0
 public PlaneIntersectionType Intersects(BoundingFrustum frustum)
 {
     return(frustum.Intersects(this));
 }
예제 #3
0
 /// <summary>
 /// Test if a frustum is fully inside, outside, or just intersecting the sphere.
 /// </summary>
 /// <param name="frustum">The frustum for testing.</param>
 /// <param name="result">The containment type as an output parameter.</param>
 public void Contains(ref BoundingFrustum frustum, out ContainmentType result)
 {
     result = this.Contains(frustum);
 }
예제 #4
0
 public bool Intersects(BoundingFrustum frustum)
 {
     return(frustum.Intersects(this));
 }