-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMathHelper.h
More file actions
62 lines (45 loc) · 1.06 KB
/
Copy pathMathHelper.h
File metadata and controls
62 lines (45 loc) · 1.06 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/********************************
Name: Math Helper
Copyright:
Author: Martin Cardozo
Date: 12/06/08 11:17
Description: Funciones Matemáticas Auxiliares
*********************************/
/************************
CLASS
************************/
class MathHelper {
public:
//CONSTRUCTOR
MathHelper();
//FUNCTIONS
float randFloat(float max);
int randInt(int max);
float floatDelta();
int intDelta(int Value1, int Value2);
//VARIABLES
private:
//FUNCTIONS
//VARIABLES
};
/************************
CONSTRUCTOR
************************/
MathHelper::MathHelper(){
};
/************************
PUBLIC METHODS
************************/
float MathHelper::randFloat(float max){
return rand()/(float(max)+1);
};
int MathHelper::randInt(int max){
};
float MathHelper::floatDelta(){
};
int MathHelper::intDelta(int Value1, int Value2){
return Value2 - Value1;
};
/************************
PRIVATE METHODS
************************/