format
typescript
Bounds.CopyFrom(from)class: Bounds
description
Assigns the values of the given object to the current object.
parameter
| param_name | type | description |
|---|---|---|
| from | Bounds | The object to copy from. |
reture
| type | description |
|---|---|
void |
code example
typescript
let to = new Bounds(new Vector3(1, 1, 1), new Vector3(1, 1, 1));
let from = new Bounds(new Vector3(0, 0, 0), new Vector3(1, 1, 1));
to.CopyFrom(from);