mirror of
https://github.com/zeldaret/ph
synced 2026-05-23 15:01:37 -04:00
19 lines
250 B
C
19 lines
250 B
C
#ifndef LIB_MATH_H
|
|
#define LIB_MATH_H
|
|
|
|
#include "types.h"
|
|
|
|
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
|