make clear we're not getting a return value from vector_2d_copy

This commit is contained in:
Mario Hüttel 2020-06-29 20:03:38 +02:00
parent 058564326b
commit f135b42d8a
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ void vector_2d_rotate(struct vector_2d *vec, double angle)
sin_val = sin(angle);
cos_val = cos(angle);
vector_2d_copy(&temp, vec);
(void)vector_2d_copy(&temp, vec);
/* Apply rotation matrix */
vec->x = (cos_val * temp.x) - (sin_val * temp.y);