Пример #1
0
 /// <summary>
 /// Check if this <see cref="Plane"/> intersects a <see cref="BoundingFrustum"/>.
 /// </summary>
 /// <param name="frustum">The <see cref="BoundingFrustum"/> to test for intersection.</param>
 /// <returns>
 /// The type of intersection of this <see cref="Plane"/> with the specified <see cref="BoundingFrustum"/>.
 /// </returns>
 public PlaneIntersectionType Intersects(BoundingFrustum frustum)
 {
     return(frustum.Intersects(this));
 }
Пример #2
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);
 }
Пример #3
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()));
 }
Пример #4
0
 /// <summary>
 ///   Check if this <see cref="BoundingBox"/> intersects a <see cref="BoundingFrustum"/>.
 /// </summary>
 /// <param name="frustum">The <see cref="BoundingFrustum"/> to test for intersection.</param>
 /// <returns>
 ///   <code>true</code> if this <see cref="BoundingBox"/> intersects <paramref name="frustum"/>,
 ///   <code>false</code> if it does not.
 /// </returns>
 public bool Intersects(BoundingFrustum frustum)
 {
     return(frustum.Intersects(this));
 }