Skip to content

format

typescript
Bounds.EqualsTo(other)

class: Bounds

description

Determines whether the current bounding box is equal to the target bounding box.

parameter

param_nametypedescription
otherBoundsThe target bounding box.

reture

typedescription
booleanTrue if the current bounding box is equal to the target bounding box; otherwise, false.

code example

typescript
let bounds = new Bounds(new Vector3(1, 1, 1), new Vector3(2, 2, 2));
let other = new Bounds(new Vector3(1, 1, 1), new Vector3(3, 3, 3));
bounds.Equals(other);