#include <GeomAPI_Interface.h>
#include <boost/shared_ptr.hpp>
-class GeomAPI_XYZ;
+class GeomAPI_XY;
/**\class GeomAPI_Pnt2d
* \ingroup DataModel
public:
/// Creation of point by coordinates
GeomAPI_Pnt2d(const double theX, const double theY);
+ /// Creation of point by coordinates
+ GeomAPI_Pnt2d(const boost::shared_ptr<GeomAPI_XY>& theCoords);
/// returns X coordinate
double x() const;
/// sets Y coordinate
void setY(const double theY);
+ /// returns coordinates of the point
+ const boost::shared_ptr<GeomAPI_XY> xy();
+
/// Distance between two points
double distance(const boost::shared_ptr<GeomAPI_Pnt2d>& theOther) const;
};