mkdd/include/Yamamoto/KartMath.h
2023-08-21 23:32:54 +02:00

25 lines
714 B
C++

#ifndef KARTMATH_H
#define KARTMATH_H
#include <JSystem/JGeometry.h>
class KartMath
{
public:
f32 SpeedySqrtf(register f32);
void CrossToPolar(JGeometry::TVec3<f32> *, JGeometry::TVec3f *, f32 *, f32 *, f32 *);
void PolarToCross(VecPtr, VecPtr, f32, f32, f32);
f32 lu(Mtx33, int *);
void solve(Mtx33, f32 *, int *, f32 *, int);
f32 Gauss(Mtx33, f32 *, f32 *);
f32 LimmtNumber(f32, f32);
f32 fcnvge(f32, f32, f32, f32);
void ChaseFnumber(f32 *, f32, f32);
void ChaseFcnvge(f32 *, u16 *, f32, u16);
void ChaseFcnvge4(f32 *, u16 *, f32, u16);
// Inline/Unused
// void GetDir(JGeometry::TVec3f *, JGeometry::TVec3f *);
int cnvge(int, int, int, int);
};
#endif