Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Contains() [2/7]

ContainmentType Microsoft.Xna.Framework.BoundingFrustum.Contains ( BoundingFrustum frustum)
inline

Definition at line 471 of file BoundingFrustum.cs.

472 {
473 if (frustum == null)
474 {
475 throw new ArgumentNullException("frustum");
476 }
477 ContainmentType result = ContainmentType.Disjoint;
478 if (Intersects(frustum))
479 {
480 result = ContainmentType.Contains;
481 for (int i = 0; i < cornerArray.Length; i++)
482 {
483 if (Contains(frustum.cornerArray[i]) == ContainmentType.Disjoint)
484 {
485 result = ContainmentType.Intersects;
486 break;
487 }
488 }
489 }
490 return result;
491 }

References Microsoft.Xna.Framework.Contains, Microsoft.Xna.Framework.BoundingFrustum.cornerArray, Microsoft.Xna.Framework.Intersects, and Microsoft.Xna.Framework.Vector3.Length().