lovr.math.vec3

Edit

Creates a temporary 3D vector. This function takes the same arguments as Vec3:set.





Arguments

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

Returns

NameTypeDescription
vVec3 The new vector.

Arguments

NameTypeDescription
uVec3 A vector to copy the values from.

Returns

NameTypeDescription
vVec3 The new vector.

Arguments

NameTypeDescription
mMat4 A matrix to use the position of.

Returns

NameTypeDescription
vVec3 The new vector.

Arguments

NameTypeDescription
qQuat A quat to use the direction of.

Returns

NameTypeDescription
vVec3 The new vector.

See also