Add pad to macro

This commit is contained in:
ABelliqueux 2021-10-13 12:41:28 +02:00
parent c0b40e4747
commit 758cb5bcec

View File

@ -15,10 +15,11 @@
#define max(a,b) \ #define max(a,b) \
(a)-(b)>0?(a):(b) (a)-(b)>0?(a):(b)
// add 2 vector and store in a third vector // add 2 vector and store in a third vector
#define addVector2(v0, v1, v2) \ #define addVector2(v0, v1, v2) \
(v2)->vx = (v0)->vx + (v1)->vx, \ (v2)->vx = (v0)->vx + (v1)->vx, \
(v2)->vy = (v0)->vy + (v1)->vy, \ (v2)->vy = (v0)->vy + (v1)->vy, \
(v2)->vz = (v0)->vz + (v1)->vz \ (v2)->vz = (v0)->vz + (v1)->vz, \
(v2)->pad = (v0)->pad + (v1)->pad \
// substract vector // substract vector
#define subVector(v0, v1) \ #define subVector(v0, v1) \