Function rc_vector_cross_product#
Defined in File vector.h
Function Documentation#
-
int rc_vector_cross_product(rc_vector_t v1, rc_vector_t v2, rc_vector_t *p)#
Computes the cross-product of two vectors, each of length 3.
The result is placed in vector p and and any existing memory used by p is freed to avoid memory leaks.
- Parameters:
v1 – [in] User’s vector struct
v2 – [in] User’s vector struct
p – [out] resulting cross product
- Returns:
Returns 0 on success, otherwise -1.