Skip to content

format

typescript
Bounds.Overlaps(other)

class: Bounds

description

Checks if the specified bounding box overlaps with this bounding box.

parameter

param_nametypedescription
otherBoundsThe specified bounding box.

reture

typedescription
booleanTrue 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);