From 758cb5bcecfa3f41978ae34e605108e5d27dd67e Mon Sep 17 00:00:00 2001 From: ABelliqueux Date: Wed, 13 Oct 2021 12:41:28 +0200 Subject: [PATCH] Add pad to macro --- include/macros.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) \