X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Pnt.h;h=d06d5d9fb1be8a0a210c697c611be2d8be89ce1a;hb=f60dc9dd94d5d4b0ea07e3e3cbfd5b3028f0942d;hp=33ff54c5e908cbbe8e1fd8c678ad17266923a63f;hpb=2532fb2df83ee1ddd9ff3e8b381d3788eaa15b69;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Pnt.h b/src/GeomAPI/GeomAPI_Pnt.h index 33ff54c5e..d06d5d9fb 100644 --- a/src/GeomAPI/GeomAPI_Pnt.h +++ b/src/GeomAPI/GeomAPI_Pnt.h @@ -14,7 +14,8 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or +// email : webmaster.salome@opencascade.com // #ifndef GeomAPI_Pnt_H_ @@ -75,6 +76,13 @@ class GeomAPI_Pnt : public GeomAPI_Interface GEOMAPI_EXPORT bool isEqual(const std::shared_ptr& theOther) const; + /// Returns \c true, if the current point is less than theOther. + /// The point is less than other, if X coordinate is less. + /// In case of X's are equal, if Y is less than other. + /// If Y's are equal too, compare Z's. + GEOMAPI_EXPORT + bool isLess(const std::shared_ptr& theOther) const; + /// Projects a point to the plane defined by the origin and 2 axes vectors in this plane GEOMAPI_EXPORT std::shared_ptr to2D(const std::shared_ptr& theOrigin, @@ -90,4 +98,7 @@ class GeomAPI_Pnt : public GeomAPI_Interface void translate(const std::shared_ptr& theDir, double theDist); }; +//! Pointer on the object +typedef std::shared_ptr GeomPointPtr; + #endif