mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-11 01:47:40 +00:00
16
include/Kyoto/Math/CMath.hpp
Normal file
16
include/Kyoto/Math/CMath.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef _CMATH_HPP
|
||||
#define _CMATH_HPP
|
||||
|
||||
#include "types.h"
|
||||
|
||||
class CMath {
|
||||
public:
|
||||
static f32 FastCosR(f32 v);
|
||||
static f32 FastSinR(f32 v);
|
||||
static inline f32 FastFmod(f32 x, f32 y) {
|
||||
s32 v = static_cast<s32>(x * (1.f / y));
|
||||
return x - v * y;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user