Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #18755 (Tuleap): Do not process key events if a modal window is displayed
[modules/shaper.git]
/
src
/
GeomAPI
/
GeomAPI_Pnt.cpp
diff --git
a/src/GeomAPI/GeomAPI_Pnt.cpp
b/src/GeomAPI/GeomAPI_Pnt.cpp
index 4f7607c8fe5d7524df48e78b4abee954912eae09..2dec8f3bb4e712b66186dca3cc81462c23553a8e 100644
(file)
--- a/
src/GeomAPI/GeomAPI_Pnt.cpp
+++ b/
src/GeomAPI/GeomAPI_Pnt.cpp
@@
-18,6
+18,7
@@
//
#include<GeomAPI_Pnt.h>
//
#include<GeomAPI_Pnt.h>
+#include <GeomAPI_Ax1.h>
#include<GeomAPI_XYZ.h>
#include<GeomAPI_Pnt2d.h>
#include<GeomAPI_Dir.h>
#include<GeomAPI_XYZ.h>
#include<GeomAPI_Pnt2d.h>
#include<GeomAPI_Dir.h>
@@
-127,3
+128,8
@@
std::shared_ptr<GeomAPI_Pnt2d> GeomAPI_Pnt::to2D(const std::shared_ptr<GeomAPI_P
gp_Pnt2d aRes = ProjLib::Project(aPln, *MY_PNT);
return std::shared_ptr<GeomAPI_Pnt2d>(new GeomAPI_Pnt2d(aRes.X(), aRes.Y()));
}
gp_Pnt2d aRes = ProjLib::Project(aPln, *MY_PNT);
return std::shared_ptr<GeomAPI_Pnt2d>(new GeomAPI_Pnt2d(aRes.X(), aRes.Y()));
}
+
+void GeomAPI_Pnt::rotate(const std::shared_ptr<GeomAPI_Ax1>& theAxis, const double theAngle)
+{
+ MY_PNT->Rotate(theAxis->impl<gp_Ax1>(), theAngle / 180.0 * M_PI);
+}