コード例 #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
ファイル: BoundingBox.cs プロジェクト: fosstheory/PongGlobe
 public bool 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);
 }