Skip to content

格式

typescript
Bounds.CopyFrom(from)

所属类: Bounds

描述

把传入的对象赋值给当前对象。

参数

参数名类型描述
fromBounds传入的对象

返回值

类型描述
void

代码示例

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