Logo
MathHelper.h
1#pragma once
2#include "math/Math.h"
3#undef PI
4
5namespace SharpKmyMath
6{
7 public 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}
Definition: MathHelper.h:7
static const float PI
Definition: MathHelper.h:23
static float lerp(float start, float end, float rate)
Definition: MathHelper.h:18
static float ToDeg(float d)
Definition: MathHelper.h:10
static float ToRad(float d)
Definition: MathHelper.h:14
Definition: RefCapture.h:3