Salome HOME
fix: replace unordered_set/map with set/map
[tools/medcoupling.git] / src / INTERP_KERNEL / Geometric2D / InterpKernelGeo2DBounds.hxx
index 77e0095433809db53f191384de2155eec5b61b63..3f267f476600f7f12542f99fc40b04d168988fcc 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2024  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -16,6 +16,7 @@
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+// Author : Anthony Geay (CEA/DEN)
 
 #ifndef __INTERPKERNELGEO2DBOUNDS_HXX__
 #define __INTERPKERNELGEO2DBOUNDS_HXX__
@@ -30,19 +31,23 @@ namespace INTERP_KERNEL
    * Relative LOC
    */
   typedef enum
-    {
-      IN              = 0,
-      OUT             = 1,
-      ON_BOUNDARY_POS = 2,
-      ON_BOUNDARY_NEG = 3
-    } Position;
-  
+  {
+    IN              = 0,
+    OUT             = 1,
+    ON_BOUNDARY_POS = 2,
+    ON_BOUNDARY_NEG = 3
+  } Position;
+
   class INTERPKERNEL_EXPORT Bounds
   {
   public:
     Bounds():_x_min(0.),_x_max(0.),_y_min(0.),_y_max(0.) { }
     double &operator[](int i);
     const double& operator[](int i) const;
+    double getXMin() const { return _x_min; }
+    double getXMax() const { return _x_max; }
+    double getYMin() const { return _y_min; }
+    double getYMax() const { return _y_max; }
     double getDiagonal() const;
     void getBarycenter(double& xBary, double& yBary) const;
     void applySimilarity(double xBary, double yBary, double dimChar);