diff --git a/include/macros.h b/include/macros.h index 9ee2e9d..eea4476 100644 --- a/include/macros.h +++ b/include/macros.h @@ -15,10 +15,11 @@ #define max(a,b) \ (a)-(b)>0?(a):(b) // add 2 vector and store in a third vector -#define addVector2(v0, v1, v2) \ - (v2)->vx = (v0)->vx + (v1)->vx, \ - (v2)->vy = (v0)->vy + (v1)->vy, \ - (v2)->vz = (v0)->vz + (v1)->vz \ +#define addVector2(v0, v1, v2) \ + (v2)->vx = (v0)->vx + (v1)->vx, \ + (v2)->vy = (v0)->vy + (v1)->vy, \ + (v2)->vz = (v0)->vz + (v1)->vz, \ + (v2)->pad = (v0)->pad + (v1)->pad \ // substract vector #define subVector(v0, v1) \