mirror of
https://github.com/echojc/osu-ds.git
synced 2025-06-19 01:15:44 -04:00

Removed the arm7 section Changed the makefile to only use the arm9 stuff Epicpkmn: Fix source/Graphics/GraphicsManager.cpp Co-Authored-By: Pk11 <epicpkmn11@outlook.com> Co-Authored-By: Kaisaan <34224128+Kaisaan@users.noreply.github.com>
26 lines
597 B
C++
26 lines
597 B
C++
#include <nds.h>
|
|
//#include <math.h>
|
|
|
|
#ifndef __MATHHELPER_H__
|
|
#define __MATHHELPER_H__
|
|
|
|
class MathHelper
|
|
{
|
|
public:
|
|
static u32 Abs(s32 value) { return (value > 0 ? value : -value); }
|
|
static s32 Max(s32 value1, s32 value2) { return (value1 > value2 ? value1 : value2); }
|
|
static s32 Min(s32 value1, s32 value2) { return (value1 < value2 ? value1 : value2); }
|
|
static s32 Sgn(s32 value) { return (value == (s32)Abs(value) ? 1 : -1); }
|
|
static float Frc(float value) { return value - (int)value; }
|
|
|
|
static u16 Random(u16 min, u16 max);
|
|
|
|
protected:
|
|
static u16 mSeed;
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|