Signature
stock xs_vec_cross(const Float:vec1[], const Float:vec2[], Float:out[]){ out[0] = vec1[1]*vec2[2] - vec1[2]*vec2[1]; out[1] = vec1[2]*vec2[0] - vec1[0]*vec2[2]; out[2] = vec1[0]*vec2[1] - vec1[1]*vec2[0];}
Description
Computes the cross product of two vectors.
Parameters
- vec1 — The first vector operand of the cross operation.
- vec2 — The second vector operand of the cross operation.
- out — The output vector. *Can't* be one of the input vectors.
No return value