Vec3:cross
EditSets 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
Name | Type | Description |
u | Vec3 | The vector to compute the cross product with. |
Returns
Name | Type | Description |
self | Vec3 | The modified vector. |
Arguments
Name | Type | Description |
x | number | A value of x component to compute cross product with. |
y | number | A value of y component to compute cross product with. |
z | number | A value of z component to compute cross product with. |
Returns
Name | Type | Description |
self | Vec3 | The modified vector. |
Notes
The vectors are not normalized before or after computing the cross product.