Vec3:set

Edit

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




Arguments

NameTypeDefaultDescription
xnumber0 The new x value of the vector.
ynumberx The new y value of the vector.
znumberx The new z value of the vector.

Returns

NameTypeDescription
vVec3 The input vector.

Arguments

NameTypeDescription
uVec3 The vector to copy the values from.

Returns

NameTypeDescription
vVec3 The input vector.

Arguments

NameTypeDescription
mMat4 The matrix to use the position of.

Returns

NameTypeDescription
vVec3 The input vector.

See also