Skip to content

format

typescript
Vector4.Clone(val)

class: Vector4

description

Constructs a new vector using the vector val.

parameter

param_nametypedescription
valVector4The vector used for reconstruction.

return

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