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

◆ Contains() [1/7]

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

Definition at line 430 of file BoundingFrustum.cs.

431 {
432 bool flag = false;
433 Plane[] array = planes;
434 foreach (Plane plane in array)
435 {
436 switch (box.Intersects(plane))
437 {
438 case PlaneIntersectionType.Front:
439 return ContainmentType.Disjoint;
440 case PlaneIntersectionType.Intersecting:
441 flag = true;
442 break;
443 }
444 }
445 if (!flag)
446 {
447 return ContainmentType.Contains;
448 }
449 return ContainmentType.Intersects;
450 }

References System.array, Microsoft.Xna.Framework.Plane.Intersects(), and Microsoft.Xna.Framework.BoundingFrustum.planes.