Vec3:cross

Edit

Sets this vector to be equal to the cross product between this vector and another one. The new v will be perpendicular to both the old v and u.



Arguments

NameTypeDescription
uVec3 The vector to compute the cross product with.

Returns

NameTypeDescription
vVec3 The original vector, with the cross product as its values.

Arguments

NameTypeDescription
xnumber A value of x component to compute cross product with.
ynumber A value of y component to compute cross product with.
znumber A value of z component to compute cross product with.

Returns

NameTypeDescription
vVec3 The original vector, with the cross product as its values.

Notes

The vectors are not normalized before or after computing the cross product.

See also