Vec4:set

Sets the components of the vector, either from numbers or an existing vector.

v = Vec4:set(x, y, z, w)

Arguments

NameTypeDefaultDescription
xnumber0The new x value of the vector.
ynumberxThe new y value of the vector.
znumberxThe new z value of the vector.
wnumberxThe new w value of the vector.

Returns

NameTypeDescription
vVec4The input vector.

v = Vec4:set(u)

Arguments

NameTypeDescription
uVec4The vector to copy the values from.

Returns

NameTypeDescription
vVec4The input vector.

See also