Language
Edit

MathUtilities.TestPlanesAABB(Plane[], Int32, Bounds, Boolean) Method

Definition

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.

Applies to