Vec4:add

Adds a vector or a number to the vector.

v = Vec4:add(u)

Arguments

NameTypeDescription
uVec4The other vector.

Returns

NameTypeDescription
vVec4The original vector.

v = Vec4:add(x)

Arguments

NameTypeDescription
xnumberA number to add to each component.

Returns

NameTypeDescription
vVec4The original vector.

See also