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

◆ Contains() [6/7]

void Microsoft.Xna.Framework.BoundingFrustum.Contains ( ref Vector3 point,
out ContainmentType result )
inline

Definition at line 508 of file BoundingFrustum.cs.

509 {
510 Plane[] array = planes;
511 for (int i = 0; i < array.Length; i++)
512 {
513 Plane plane = array[i];
514 float num = plane.Normal.X * point.X + plane.Normal.Y * point.Y + plane.Normal.Z * point.Z + plane.D;
515 if (num > 1E-05f)
516 {
517 result = ContainmentType.Disjoint;
518 return;
519 }
520 }
521 result = ContainmentType.Contains;
522 }

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