Contains
Is point contained in the bounding box?
読み終わるまでの所要時間 1 分最終更新 21日前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
Contains(Vector3Int)
Is contained in the bounding box?
pointpublic bool Contains(Vector3Int position)
Parameters
Point to check.
Returns
Type | Description |
|---|---|
| bool | Is |
Remarks
A point is contained in the bounding box if its x, y and z components are greater or equal to BoundsInt.xMin, BoundsInt.yMin and BoundsInt.zMin respectively, and less than BoundsInt.xMax, BoundsInt.yMax and BoundsInt.zMax respectively.
Contains(Vector3Int)
Is contained in the bounding box?
pointpublic bool Contains(in Vector3Int position)
Parameters
Point to check.
Returns
Type | Description |
|---|---|
| bool | Is |
Remarks
A point is contained in the bounding box if its x, y and z components are greater or equal to BoundsInt.xMin, BoundsInt.yMin and BoundsInt.zMin respectively, and less than BoundsInt.xMax, BoundsInt.yMax and BoundsInt.zMax respectively.