mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-08-19 21:12:02 -04:00
link m_olib
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
#define SQRT_OF_2_F 1.41421356237309504880f
|
||||
|
||||
#define M_PI 3.14159265358979323846f
|
||||
|
||||
s16 sins(u16);
|
||||
|
||||
f32 fatan2(f32, f32);
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
|
||||
#include "types.h"
|
||||
|
||||
typedef struct xyz_s {
|
||||
f32 x, y, z;
|
||||
} xyz_t;
|
||||
|
||||
typedef struct {
|
||||
u32 r:8;
|
||||
u32 g:8;
|
||||
|
||||
@@ -3,10 +3,20 @@
|
||||
|
||||
#include "types.h"
|
||||
#include "libu64/u64types.h"
|
||||
#include "m_lib.h"
|
||||
#include "libc/math.h"
|
||||
|
||||
//gotta put these somewhere else
|
||||
#define TRUNCF_BINANG(f) (s16)(s32)(f)
|
||||
#define CAM_DEG_TO_BINANG(degrees) (s16)TRUNCF_BINANG((degrees) * 182.04167f + .5f)
|
||||
#define RAD_TO_DEG(radians) ((radians) * (180.0f / M_PI))
|
||||
|
||||
typedef struct rect_s {
|
||||
int top, bottom;
|
||||
int l, r;
|
||||
} rect;
|
||||
|
||||
void radianxy_by_2pos(xyz_t* dest, xyz_t* sub, xyz_t* min);
|
||||
s_xyz sanglexy_by_2pos(xyz_t* sub, xyz_t* min);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user