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

◆ Contains() [4/7]

void Microsoft.Xna.Framework.BoundingFrustum.Contains ( ref BoundingBox box,
out ContainmentType result )
inline

Definition at line 452 of file BoundingFrustum.cs.

453 {
454 bool flag = false;
455 Plane[] array = planes;
456 foreach (Plane plane in array)
457 {
458 switch (box.Intersects(plane))
459 {
460 case PlaneIntersectionType.Front:
461 result = ContainmentType.Disjoint;
462 return;
463 case PlaneIntersectionType.Intersecting:
464 flag = true;
465 break;
466 }
467 }
468 result = ((!flag) ? ContainmentType.Contains : ContainmentType.Intersects);
469 }

References System.array, and Microsoft.Xna.Framework.BoundingFrustum.planes.