mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-23 13:42:25 -04:00
a6f059827b
* Game ABI / headers refactoring * Delete dusk/imgui.h
19 lines
453 B
C
19 lines
453 B
C
#pragma once
|
|
|
|
#include <cmath>
|
|
|
|
#ifndef M_PI
|
|
#define M_PI 3.14159265358979323846f
|
|
#endif
|
|
#define M_SQRT3 1.73205f
|
|
|
|
#define DEG_TO_RAD(degrees) (degrees * (M_PI / 180.0f))
|
|
#define RAD_TO_DEG(radians) (radians * (180.0f / M_PI))
|
|
|
|
inline float i_sinf(float x) { return sin(x); }
|
|
inline float i_cosf(float x) { return cos(x); }
|
|
inline float i_tanf(float x) { return tan(x); }
|
|
inline float i_acosf(float x) { return acos(x); }
|
|
|
|
#include <dolphin/ppc_math.h>
|