www.pudn.com > notWow.rar > Math.h
#pragma once
#include "math.h"
const float PI = 3.1415f;
class Math
{
public:
static float Sin(int Angel)
{
float rad = (float)Angel / 180 * PI;
return sin(rad);
}
static float Cos(int Angel)
{
float rad = (float)Angel / 180 * PI;
return cos(rad);
}
static int Arctan(float x)
{
float rad = atan(x);
int angel = rad * 180 / PI ;
return (angel + 360) % 360;
}
static float Tan(float x)
{
return tan(x);
}
};