1 // File: GeomAPI_Pnt.hxx
2 // Created: 23 Apr 2014
3 // Author: Mikhail PONIKAROV
8 #include <GeomAPI_Interface.h>
9 #include <boost/shared_ptr.hpp>
15 * \brief 3D point defined by three coordinates
18 class GEOMAPI_EXPORT GeomAPI_Pnt : public GeomAPI_Interface
21 /// Creation of point by coordinates
22 GeomAPI_Pnt(const double theX, const double theY, const double theZ);
23 /// Creation of point by coordinates
24 GeomAPI_Pnt(const boost::shared_ptr<GeomAPI_XYZ>& theCoords);
26 /// returns X coordinate
28 /// returns Y coordinate
30 /// returns Z coordinate
34 void setX(const double theX);
36 void setY(const double theY);
38 void setZ(const double theZ);
40 /// returns coordinates of the point
41 const boost::shared_ptr<GeomAPI_XYZ> xyz();
43 /// Distance between two points
44 double distance(const boost::shared_ptr<GeomAPI_Pnt>& theOther) const;