X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Pnt2d.h;h=2ab01f2a35a7836cd2ab089ec3415a0c6298eec6;hb=bdbfb368d71ed11cc0391354a7d86c880cd94949;hp=bd0000fdb867d2e0bc919862bf41f599db18cf8b;hpb=3874b57fe5aba25ff5aee2a07654fc23c1ee8eb0;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Pnt2d.h b/src/GeomAPI/GeomAPI_Pnt2d.h index bd0000fdb..2ab01f2a3 100644 --- a/src/GeomAPI/GeomAPI_Pnt2d.h +++ b/src/GeomAPI/GeomAPI_Pnt2d.h @@ -19,36 +19,46 @@ class GeomAPI_Dir; * \brief 2D point defined by two coordinates */ -class GEOMAPI_EXPORT GeomAPI_Pnt2d : public GeomAPI_Interface +class GeomAPI_Pnt2d : public GeomAPI_Interface { public: /// Creation of point by coordinates + GEOMAPI_EXPORT GeomAPI_Pnt2d(const double theX, const double theY); /// Creation of point by coordinates + GEOMAPI_EXPORT GeomAPI_Pnt2d(const std::shared_ptr& theCoords); /// returns X coordinate + GEOMAPI_EXPORT double x() const; /// returns Y coordinate + GEOMAPI_EXPORT double y() const; /// sets X coordinate + GEOMAPI_EXPORT void setX(const double theX); /// sets Y coordinate + GEOMAPI_EXPORT void setY(const double theY); /// Returns the 3D point + GEOMAPI_EXPORT std::shared_ptr to3D(const std::shared_ptr& theOrigin, const std::shared_ptr& theDirX, const std::shared_ptr& theDirY); /// returns coordinates of the point + GEOMAPI_EXPORT const std::shared_ptr xy(); /// Distance between two points + GEOMAPI_EXPORT double distance(const std::shared_ptr& theOther) const; /// Returns whether the distance between two points is less then precision confusion + GEOMAPI_EXPORT bool isEqual(const std::shared_ptr& theOther) const; };