Skip to content

format

typescript
Bounds.CopyFrom(from)

class: Bounds

description

Assigns the values of the given object to the current object.

parameter

param_nametypedescription
fromBoundsThe object to copy from.

reture

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