Vec3:add

Adds a vector or a number to the vector.

v = Vec3:add(u)

Arguments

NameTypeDescription
uVec3The other vector.

Returns

NameTypeDescription
vVec3The original vector.

v = Vec3:add(x)

Arguments

NameTypeDescription
xnumberA number to add to each component.

Returns

NameTypeDescription
vVec3The original vector.

See also