lovr.math.newVec4

Edit

Creates a vector.



Arguments

NameTypeDefaultDescription
xnumber The x component of the vector.
ynumber The y component of the vector.
znumber0 The z component of the vector.

Returns

NameTypeDescription
vvector The new vector.

Arguments

NameTypeDescription
nnumber A number to assign to the x, y, and z components of the vector.

Returns

NameTypeDescription
vvector The new vector.

See also