-
Notifications
You must be signed in to change notification settings - Fork 0
/
Math_System.h
33 lines (30 loc) · 1.35 KB
/
Math_System.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
//-----------------------------------------------------------------
//-----------------------------------------------------------------
class Math_System
{
//-------------------------------------------------------------
public:
//---------------------------------------------------------
//---------------------------------------------------------
//constructors
Math_System(void);
~Math_System(void);
//---------------------------------------------------------
void TendTo(float &Input, float Target, float Speed);
void TendTo(double &Input, double Target, double Speed);
float Interpolate(float input, float srcmin, float srcmax, float dstmin, float dstmax);
double Interpolate(double input, double srcmin, double srcmax, double dstmin, double dstmax);
void CapValue(char &input, char min, char max);
void CapValue(short &input, short min, short max);
void CapValue(int &input, int min, int max);
void CapValue(long &input, long min, long max);
void CapValue(float &input, float min, float max);
void CapValue(double &input, double min, double max);
float Lerp(float v0, float v1, float t);
double Lerp(double v0, double v1, double t);
//-------------------------------------------------------------
private:
//-------------------------------------------------------------
//-------------------------------------------------------------
};