Vec4:add

Adds a vector or a number to the vector.


v = Vec4:add(u)

Arguments

NameTypeDescription
uVec4 The other vector.

Returns

NameTypeDescription
vVec4 The original vector.

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

Arguments

NameTypeDefaultDescription
xnumber A value to add to x component.
ynumberx A value to add to y component.
znumberx A value to add to z component.
wnumberx A value to add to w component.

Returns

NameTypeDescription
vVec4 The original vector.

See also