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