// Created: 23 Apr 2014
// Author: Mikhail PONIKAROV
-#ifndef GeomAPI_Pnt_HeaderFile
-#define GeomAPI_Pnt_HeaderFile
+#ifndef GeomAPI_Pnt_H_
+#define GeomAPI_Pnt_H_
#include <GeomAPI_Interface.h>
+#include <boost/shared_ptr.hpp>
+
+class GeomAPI_XYZ;
/**\class GeomAPI_Pnt
* \ingroup DataModel
* \brief 3D point defined by three coordinates
*/
-class GEOMAPI_EXPORT GeomAPI_Pnt: public GeomAPI_Interface
+class GEOMAPI_EXPORT GeomAPI_Pnt : public GeomAPI_Interface
{
-public:
+ public:
/// Creation of point by coordinates
GeomAPI_Pnt(const double theX, const double theY, const double theZ);
+ /// Creation of point by coordinates
+ GeomAPI_Pnt(const boost::shared_ptr<GeomAPI_XYZ>& theCoords);
/// returns X coordinate
double x() const;
void setY(const double theY);
/// sets Z coordinate
void setZ(const double theZ);
+
+ /// returns coordinates of the point
+ const boost::shared_ptr<GeomAPI_XYZ> xyz();
+
+ /// Distance between two points
+ double distance(const boost::shared_ptr<GeomAPI_Pnt>& theOther) const;
};
#endif