Move M_PI to ext_math.h
This commit is contained in:
parent
aad91097cd
commit
c272403fe0
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue