format
typescript
Bounds.Overlaps(other)class: Bounds
description
Checks if the specified bounding box overlaps with this bounding box.
parameter
| param_name | type | description |
|---|---|---|
| other | Bounds | The specified bounding box. |
reture
| type | description |
|---|---|
boolean | True if the bounding boxes overlap, otherwise false. |
code example
typescript
let bounds = new Bounds(new Vector3(1, 1, 1), new Vector3(1, 1, 1));
let bounds2 = new Bounds(new Vector3(0, 0, 0), new Vector3(2, 2, 2));
let ret = bounds2.Overlaps(bounds);