format
typescript
Vector4.Clone(val)class: Vector4
description
Constructs a new vector using the vector val.
parameter
| param_name | type | description |
|---|---|---|
| val | Vector4 | The vector used for reconstruction. |
return
| type | description |
|---|---|
Vector4 | A new vector, where each component is equal to the corresponding component of the parameter vector. |
code example
typescript
let v4 = new Vector4(1, 2, 3, 4);
let clone = Vector4.Clone(v4)