X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Pnt.h;h=d06d5d9fb1be8a0a210c697c611be2d8be89ce1a;hb=f60dc9dd94d5d4b0ea07e3e3cbfd5b3028f0942d;hp=3af09c1275ed7e7480adab7d5d78390239c5992d;hpb=87b6a30a3afb8fb32e7e43ade8d9c947d9eb1684;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Pnt.h b/src/GeomAPI/GeomAPI_Pnt.h index 3af09c127..d06d5d9fb 100644 --- a/src/GeomAPI/GeomAPI_Pnt.h +++ b/src/GeomAPI/GeomAPI_Pnt.h @@ -76,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, @@ -91,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