edit error handling
This commit is contained in:
parent
299d65aa6c
commit
1a6fdf59ab
@ -50,6 +50,9 @@ void vector_2d_rotate(struct vector_2d *vec, double angle)
|
||||
double sin_val, cos_val;
|
||||
struct vector_2d temp;
|
||||
|
||||
if (!vec)
|
||||
return;
|
||||
|
||||
sin_val = sin(angle);
|
||||
cos_val = cos(angle);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user