MathUtilities.TestPlanesAABB(Plane[], Int32, Bounds, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Test if the given planes are inside the given bounds.
public static bool TestPlanesAABB(UnityEngine.Plane[] planes, int planeMask, UnityEngine.Bounds bounds, out bool entirelyInside);
static member TestPlanesAABB : UnityEngine.Plane[] * int * UnityEngine.Bounds * bool -> bool
Public Shared Function TestPlanesAABB (planes As Plane(), planeMask As Integer, bounds As Bounds, ByRef entirelyInside As Boolean) As Boolean
Parameters
- planes
- UnityEngine.Plane[]
An array of planes to test.
- planeMask
- Int32
A mask that can be used to ignore planes in planes.
Each bit represents a single index in planes, where
the least significant bit is the first plane index.
- bounds
- UnityEngine.Bounds
The bounds structure to test.
- entirelyInside
- Boolean
Will be true if all planes are the in the bounds structure, otherwise false.
Returns
true if the test was successful and entirelyInside contains a valid value, otherwise false.