Function rc_vector_dot_product#
Defined in File vector.h
Function Documentation#
-
double rc_vector_dot_product(rc_vector_t v1, rc_vector_t v2)#
Calculates the dot product of two equal-length vectors.
- Parameters:
v1 – [in] User’s vector struct
v2 – [in] User’s vector struct
- Returns:
Returns the dot product, or prints and error message and returns -1.0f on error.