1 // File: GeomAPI_Pnt2d.cpp
2 // Created: 29 May 2014
3 // Author: Artem ZHIDKOV
5 #include<GeomAPI_Pnt2d.h>
6 #include<GeomAPI_XYZ.h>
10 #define MY_PNT2D static_cast<gp_Pnt2d*>(myImpl)
12 GeomAPI_Pnt2d::GeomAPI_Pnt2d(const double theX, const double theY)
13 : GeomAPI_Interface(new gp_Pnt2d(theX, theY))
16 double GeomAPI_Pnt2d::x() const
21 double GeomAPI_Pnt2d::y() const
26 void GeomAPI_Pnt2d::setX(const double theX)
28 return MY_PNT2D->SetX(theX);
31 void GeomAPI_Pnt2d::setY(const double theY)
33 return MY_PNT2D->SetY(theY);
36 double GeomAPI_Pnt2d::distance(const boost::shared_ptr<GeomAPI_Pnt2d>& theOther) const
38 return MY_PNT2D->Distance(theOther->impl<gp_Pnt2d>());