Vec3:add

Adds a vector or a number to the vector.


v = Vec3:add(u)

Arguments

NameTypeDescription
uVec3 The other vector.

Returns

NameTypeDescription
vVec3 The original vector.

v = Vec3:add(x, y, z)

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.

Returns

NameTypeDescription
vVec3 The original vector.

See also