mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 07:53:43 +08:00
added some INT_VECTx_ASSIGN macros
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user