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

◆ Contains() [7/7]

ContainmentType Microsoft.Xna.Framework.BoundingFrustum.Contains ( Vector3 point)
inline

Definition at line 493 of file BoundingFrustum.cs.

494 {
495 Plane[] array = planes;
496 for (int i = 0; i < array.Length; i++)
497 {
498 Plane plane = array[i];
499 float num = plane.Normal.X * point.X + plane.Normal.Y * point.Y + plane.Normal.Z * point.Z + plane.D;
500 if (num > 1E-05f)
501 {
502 return ContainmentType.Disjoint;
503 }
504 }
505 return ContainmentType.Contains;
506 }

References System.array, Microsoft.Xna.Framework.Plane.D, System.E, and Microsoft.Xna.Framework.BoundingFrustum.planes.