]> Creatis software - clitk.git/blobdiff - utilities/CxImage/ximath.h
cosmetic
[clitk.git] / utilities / CxImage / ximath.h
index 014c14b80ee932d81143856bda1d3f143ceca0c6..10b98984e4f925fefac91cf50deff1591695ad76 100644 (file)
@@ -1,39 +1,39 @@
-#if !defined(__ximath_h)\r
-#define __ximath_h\r
-\r
-#include "ximadef.h"\r
-\r
-//***bd*** simple floating point point\r
-class DLL_EXP CxPoint2\r
-{\r
-public:\r
-  CxPoint2();\r
-  CxPoint2(float const x_, float const y_);\r
-  CxPoint2(CxPoint2 const &p);\r
-\r
-  float Distance(CxPoint2 const p2);\r
-  float Distance(float const x_, float const y_);\r
-\r
-  float x,y;\r
-};\r
-\r
-//and simple rectangle\r
-class DLL_EXP CxRect2\r
-{\r
-public:\r
-  CxRect2();\r
-  CxRect2(float const x1_, float const y1_, float const x2_, float const y2_);\r
-  CxRect2(CxPoint2 const &bl, CxPoint2 const &tr);\r
-  CxRect2(CxRect2 const &p);\r
-\r
-  float Surface() const;\r
-  CxRect2 CrossSection(CxRect2 const &r2) const;\r
-  CxPoint2 Center() const;\r
-  float Width() const;\r
-  float Height() const;\r
-\r
-  CxPoint2 botLeft;\r
-  CxPoint2 topRight;\r
-};\r
-\r
-#endif\r
+#if !defined(__ximath_h)
+#define __ximath_h
+
+#include "ximadef.h"
+
+//***bd*** simple floating point point
+class DLL_EXP CxPoint2
+{
+public:
+  CxPoint2();
+  CxPoint2(float const x_, float const y_);
+  CxPoint2(CxPoint2 const &p);
+
+  float Distance(CxPoint2 const p2);
+  float Distance(float const x_, float const y_);
+
+  float x,y;
+};
+
+//and simple rectangle
+class DLL_EXP CxRect2
+{
+public:
+  CxRect2();
+  CxRect2(float const x1_, float const y1_, float const x2_, float const y2_);
+  CxRect2(CxPoint2 const &bl, CxPoint2 const &tr);
+  CxRect2(CxRect2 const &p);
+
+  float Surface() const;
+  CxRect2 CrossSection(CxRect2 const &r2) const;
+  CxPoint2 Center() const;
+  float Width() const;
+  float Height() const;
+
+  CxPoint2 botLeft;
+  CxPoint2 topRight;
+};
+
+#endif