format
typescript
Vector4.CopyFrom(from)class: Vector4
description
Copies each component of the parameter vector to the specified component of the current vector.
parameter
| param_name | type | description |
|---|---|---|
| from | Vector4 | The vector used for copying. |
reture
| type | description |
|---|---|
void |
code example
typescript
let v4 = new Vector4(1, 2, 3, 4);
v4.Clone(new Vector4(1, 0, 0, 0))