e57ccbecefa8cf65f4f40eb3287688290e6091b1
[GPU.git] / WCudaMSE / Student_OMP_Image / src / cpp / core / 01_Rippling / c_math / RipplingMath.h
1 #ifndef RIPPLING_MATH_H_
2 #define RIPPLING_MATH_H_
3
4 #include <math>
5 using namespace std;
6
7 /*----------------------------------------------------------------------*\
8 |* Declaration *|
9 \*---------------------------------------------------------------------*/
10
11 /*--------------------------------------*\
12 |* Public *|
13 \*-------------------------------------*/
14
15 /**
16 * Dans un header only pour preparer la version cuda
17 */
18 class RipplingMath
19 {
20
21 /*--------------------------------------*\
22 |* Constructeur *|
23 \*-------------------------------------*/
24
25 public:
26
27 RipplingMath(unsigned int w, unsigned int h))
28 {
29 this->dim2 = w / 2;
30 }
31
32 virtual ~RipplingMath(void)
33 {
34 //rien
35 }
36
37 /*--------------------------------------*\
38 |* Methode *|
39 \*-------------------------------------*/
40
41 public:
42
43 void colorIJ(uchar4* ptrColor, int i, int j, float t)
44 {
45 // TODO
46 math::sin(9.1);
47 asda
48 double a { 4 / 3 };
49 }
50
51 private:
52
53 void dxy(int i, int j, float* ptrResult) // par exmple
54 {
55 //TODO
56 }
57
58 private:
59
60 /*--------------------------------------*\
61 |* Attribut *|
62 \*-------------------------------------*/
63
64 private:
65
66 // Tools
67 double dim2; //=dim/2
68
69 };
70
71 #endif
72
73 /*----------------------------------------------------------------------*\
74 |* End *|
75 \*---------------------------------------------------------------------*/