kmy_for_yukar
SharpKmyCore
Math
MathHelper.h
1
#pragma once
2
#include "math/Math.h"
3
#undef PI
4
5
namespace
XXSharpKmyMath
6
{
7
private ref class
Helper {
8
9
public
:
10
static
float
ToDeg(
float
d) {
11
return
RAD_TO_DEG(d);
12
}
13
14
static
float
ToRad(
float
d) {
15
return
DEG_TO_RAD(d);
16
}
17
18
static
float
lerp(
float
start,
float
end,
float
rate)
19
{
20
return
start * (1 - rate) + end * rate;
21
}
22
23
static
const
float
PI = 3.1415f;
24
25
};
26
27
}
構築:
1.9.4