Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Student_OMP_Image / src / cpp / core / 01_Rippling / c_math / RipplingMath.h
diff --git a/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/c_math/RipplingMath.h b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/c_math/RipplingMath.h
new file mode 100755 (executable)
index 0000000..e57ccbe
--- /dev/null
@@ -0,0 +1,75 @@
+#ifndef RIPPLING_MATH_H_\r
+#define RIPPLING_MATH_H_\r
+\r
+#include <math>\r
+using namespace std;\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    Declaration                                     *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |*            Public                  *|\r
+ \*-------------------------------------*/\r
+\r
+/**\r
+ * Dans un header only pour preparer la version cuda\r
+ */\r
+class RipplingMath\r
+    {\r
+\r
+       /*--------------------------------------*\\r
+       |*              Constructeur            *|\r
+        \*-------------------------------------*/\r
+\r
+    public:\r
+\r
+       RipplingMath(unsigned int w, unsigned int h))\r
+           {\r
+           this->dim2 = w / 2;\r
+           }\r
+\r
+       virtual ~RipplingMath(void)\r
+           {\r
+           //rien\r
+           }\r
+\r
+       /*--------------------------------------*\\r
+       |*              Methode                 *|\r
+        \*-------------------------------------*/\r
+\r
+    public:\r
+\r
+       void colorIJ(uchar4* ptrColor, int i, int j, float t)\r
+           {\r
+           // TODO\r
+           math::sin(9.1);\r
+asda\r
+           double a { 4 / 3 };\r
+           }\r
+\r
+    private:\r
+\r
+       void dxy(int i, int j, float* ptrResult) // par exmple\r
+           {\r
+           //TODO\r
+           }\r
+\r
+    private:\r
+\r
+       /*--------------------------------------*\\r
+       |*              Attribut                *|\r
+        \*-------------------------------------*/\r
+\r
+    private:\r
+\r
+       // Tools\r
+       double dim2; //=dim/2\r
+\r
+    };\r
+\r
+#endif\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    End                                             *|\r
+ \*---------------------------------------------------------------------*/\r