X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Dir2d.cpp;h=b7dcfc96089ac2301a5ab745bd226d81534c0c43;hb=9e869ede4d8c56262bb20534543c2bf56cd6a91b;hp=e3089d8b95afb74937a5d45077f26876c24c1d73;hpb=294640ac53df9e1fc697b007aca1e00259b5049a;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Dir2d.cpp b/src/GeomAPI/GeomAPI_Dir2d.cpp index e3089d8b9..b7dcfc960 100644 --- a/src/GeomAPI/GeomAPI_Dir2d.cpp +++ b/src/GeomAPI/GeomAPI_Dir2d.cpp @@ -14,7 +14,7 @@ GeomAPI_Dir2d::GeomAPI_Dir2d(const double theX, const double theY) { } -GeomAPI_Dir2d::GeomAPI_Dir2d(const boost::shared_ptr& theCoords) +GeomAPI_Dir2d::GeomAPI_Dir2d(const std::shared_ptr& theCoords) : GeomAPI_Interface(new gp_Dir2d(theCoords->x(), theCoords->y())) { } @@ -29,17 +29,17 @@ double GeomAPI_Dir2d::y() const return MY_DIR->Y(); } -const boost::shared_ptr GeomAPI_Dir2d::xy() +const std::shared_ptr GeomAPI_Dir2d::xy() { - return boost::shared_ptr(new GeomAPI_XY(MY_DIR->X(), MY_DIR->Y())); + return std::shared_ptr(new GeomAPI_XY(MY_DIR->X(), MY_DIR->Y())); } -double GeomAPI_Dir2d::dot(const boost::shared_ptr& theArg) const +double GeomAPI_Dir2d::dot(const std::shared_ptr& theArg) const { return MY_DIR->Dot(theArg->impl()); } -double GeomAPI_Dir2d::cross(const boost::shared_ptr& theArg) const +double GeomAPI_Dir2d::cross(const std::shared_ptr& theArg) const { return MY_DIR->XY().Crossed(theArg->impl().XY()); }