Move M_PI to ext_math.h

This commit is contained in:
dbalatoni13 2025-04-04 17:42:15 +02:00
parent aad91097cd
commit c272403fe0
2 changed files with 3 additions and 3 deletions

View file

@ -4,6 +4,8 @@
#include "math.h" #include "math.h"
#include "dolphin/mtx.h" #include "dolphin/mtx.h"
#define M_PI 3.141592653589793
typedef struct vec2f { typedef struct vec2f {
float x; float x;
float y; float y;
@ -33,7 +35,7 @@ typedef struct vec2f {
#define atan2d(y, x) (180.0*(atan2((y), (x)) / M_PI)) #define atan2d(y, x) (180.0*(atan2((y), (x)) / M_PI))
#ifndef __MWERKS__ #ifndef __MWERKS__
void HuSetVecF(Vec* arg0, f32 arg8, f32 arg9, f32 argA) void HuSetVecF(Vec *arg0, f32 arg8, f32 arg9, f32 argA);
#endif #endif
#endif #endif

View file

@ -1,8 +1,6 @@
#ifndef _MATH_H #ifndef _MATH_H
#define _MATH_H #define _MATH_H
#define M_PI 3.141592653589793
#ifndef _MATH_INLINE #ifndef _MATH_INLINE
#define _MATH_INLINE static inline #define _MATH_INLINE static inline
#endif #endif