Function rc_vector_projection#
Defined in File vector.h
Function Documentation#
-
int rc_vector_projection(rc_vector_t v, rc_vector_t e, rc_vector_t *p)#
Populates vector p with the projection of vector v onto e.
p is resized appropriately and any exising memory is freed to avoid memory leaks.
- Parameters:
v – [in] User’s vector struct
e – [in] User’s vector struct
p – [out] output
- Returns:
Returns 0 on success, otherwise -1.