diff --git a/sw/airborne/math/pprz_algebra_int.h b/sw/airborne/math/pprz_algebra_int.h index 8ae610cd3d..0e1cff56dd 100644 --- a/sw/airborne/math/pprz_algebra_int.h +++ b/sw/airborne/math/pprz_algebra_int.h @@ -209,6 +209,8 @@ struct Int64Vect3 { #define INT_VECT2_ZERO(_v) VECT2_ASSIGN(_v, 0, 0) +#define INT_VECT2_ASSIGN(_a, _x, _y) VECT2_ASSIGN(_a, _x, _y) + #define INT32_VECT2_NORM(n, v) { \ int32_t n2 = (v).x*(v).x + (v).y*(v).y; \ INT32_SQRT(n, n2); \ @@ -236,6 +238,9 @@ struct Int64Vect3 { #define INT_VECT3_ZERO(_v) VECT3_ASSIGN(_v, 0, 0, 0) #define INT32_VECT3_ZERO(_v) VECT3_ASSIGN(_v, 0, 0, 0) +#define INT_VECT3_ASSIGN(_a, _x, _y, _z) VECT3_ASSIGN(_a, _x, _y, _z) +#define INT32_VECT3_ASSIGN(_a, _x, _y, _z) VECT3_ASSIGN(_a, _x, _y, _z) + #define INT32_VECT3_COPY(_o, _i) VECT3_COPY(_o, _i) #define INT32_VECT3_SUM(_c, _a, _b) VECT3_SUM(_c, _a, _b)