diff options
Diffstat (limited to 'include/lib')
| -rw-r--r-- | include/lib/math.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/lib/math.h b/include/lib/math.h index 8790c9f6..a8951eb4 100644 --- a/include/lib/math.h +++ b/include/lib/math.h @@ -14,6 +14,18 @@ typedef s16 q4; #define ROUND_Q20(n) (((s32)(n) + 0x800) >> 12) typedef struct { + /* 0 */ s8 x; + /* 1 */ s8 y; + /* 2 */ +} Vec2b; + +typedef struct { + /* 0 */ s16 x; + /* 1 */ s16 y; + /* 2 */ +} Vec2s; + +typedef struct { /* 0 */ q20 x; /* 4 */ q20 y; /* 8 */ q20 z; |
