diff options
Diffstat (limited to 'include/lib')
| -rw-r--r-- | include/lib/math.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/lib/math.h b/include/lib/math.h index 153ac2c6..1b27fe54 100644 --- a/include/lib/math.h +++ b/include/lib/math.h @@ -5,4 +5,14 @@ extern "C" u32 FastDivide(u32 a, u32 b); +// 20.12 fixed point number +typedef u32 p32; + +typedef struct { + /* 0 */ p32 x; + /* 4 */ p32 y; + /* 8 */ p32 z; + /* c */ +} Vec3p; + #endif |
