X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Pnt.cpp;h=2dec8f3bb4e712b66186dca3cc81462c23553a8e;hb=a211165b993cec59888b300199b44b525c0daf69;hp=4f7607c8fe5d7524df48e78b4abee954912eae09;hpb=6e421e939851e0de46554ae45a3ca0e1f67cd91d;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Pnt.cpp b/src/GeomAPI/GeomAPI_Pnt.cpp index 4f7607c8f..2dec8f3bb 100644 --- a/src/GeomAPI/GeomAPI_Pnt.cpp +++ b/src/GeomAPI/GeomAPI_Pnt.cpp @@ -18,6 +18,7 @@ // #include +#include #include #include #include @@ -127,3 +128,8 @@ std::shared_ptr GeomAPI_Pnt::to2D(const std::shared_ptr(new GeomAPI_Pnt2d(aRes.X(), aRes.Y())); } + +void GeomAPI_Pnt::rotate(const std::shared_ptr& theAxis, const double theAngle) +{ + MY_PNT->Rotate(theAxis->impl(), theAngle / 180.0 * M_PI); +}