Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / GeomAPI / GeomAPI_Dir.cpp
1 // File:        GeomAPI_Dir.cpp
2 // Created:     23 Apr 2014
3 // Author:      Mikhail PONIKAROV
4
5 #include<GeomAPI_Dir.h>
6
7 #include<gp_Dir.hxx>
8
9 #define MY_DIR static_cast<gp_Pnt*>(myImpl)
10
11 GeomAPI_Dir::GeomAPI_Dir(const double theX, const double theY, const double theZ)
12   : GeomAPI_Interface(new gp_Dir(theX, theY, theZ))
13 {}
14
15 double GeomAPI_Dir::x() const
16 {
17   return MY_DIR->X();
18 }
19
20 double GeomAPI_Dir::y() const
21 {
22   return MY_DIR->Y();
23 }
24
25 double GeomAPI_Dir::z() const
26 {
27   return MY_DIR->Z();
28 }