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

◆ Contains() [2/7]

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

Definition at line 472 of file BoundingBox.cs.

473 {
474 if (null == frustum)
475 {
476 throw new ArgumentNullException("frustum", FrameworkResources.NullNotAllowed);
477 }
478 if (!frustum.Intersects(this))
479 {
480 return ContainmentType.Disjoint;
481 }
482 Vector3[] cornerArray = frustum.cornerArray;
483 foreach (Vector3 point in cornerArray)
484 {
485 if (Contains(point) == ContainmentType.Disjoint)
486 {
487 return ContainmentType.Intersects;
488 }
489 }
491 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)

References Microsoft.Xna.Framework.Contains, System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), and Microsoft.Xna.Framework.FrameworkResources.NullNotAllowed.