20 #ifndef GeomAPI_Pnt2d_H_
21 #define GeomAPI_Pnt2d_H_
23 #include <GeomAPI_Interface.h>
54 void setX(
const double theX);
57 void setY(
const double theY);
61 std::shared_ptr<GeomAPI_Pnt>
to3D(
const std::shared_ptr<GeomAPI_Pnt>& theOrigin,
62 const std::shared_ptr<GeomAPI_Dir>& theDirX,
63 const std::shared_ptr<GeomAPI_Dir>& theDirY);
67 const std::shared_ptr<GeomAPI_XY>
xy();
71 double distance(
const std::shared_ptr<GeomAPI_Pnt2d>& theOther)
const;
75 bool isEqual(
const std::shared_ptr<GeomAPI_Pnt2d>& theOther)
const;
79 typedef std::shared_ptr<GeomAPI_Pnt2d> GeomPnt2dPtr;
3D direction defined by three normalized coordinates
Definition: GeomAPI_Dir.h:34
General base class for all interfaces in this package.
Definition: GeomAPI_Interface.h:38
2D point defined by two coordinates
Definition: GeomAPI_Pnt2d.h:36
GEOMAPI_EXPORT void setY(const double theY)
sets Y coordinate
Definition: GeomAPI_Pnt2d.cpp:57
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_XY > xy()
returns coordinates of the point
Definition: GeomAPI_Pnt2d.cpp:72
GEOMAPI_EXPORT double x() const
returns X coordinate
Definition: GeomAPI_Pnt2d.cpp:42
GEOMAPI_EXPORT GeomAPI_Pnt2d(const double theX, const double theY)
Creation of point by coordinates.
Definition: GeomAPI_Pnt2d.cpp:32
GEOMAPI_EXPORT void setX(const double theX)
sets X coordinate
Definition: GeomAPI_Pnt2d.cpp:52
GEOMAPI_EXPORT double y() const
returns Y coordinate
Definition: GeomAPI_Pnt2d.cpp:47
GEOMAPI_EXPORT bool isEqual(const std::shared_ptr< GeomAPI_Pnt2d > &theOther) const
Returns whether the distance between two points is less then precision confusion.
Definition: GeomAPI_Pnt2d.cpp:82
GEOMAPI_EXPORT double distance(const std::shared_ptr< GeomAPI_Pnt2d > &theOther) const
Distance between two points.
Definition: GeomAPI_Pnt2d.cpp:77
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > to3D(const std::shared_ptr< GeomAPI_Pnt > &theOrigin, const std::shared_ptr< GeomAPI_Dir > &theDirX, const std::shared_ptr< GeomAPI_Dir > &theDirY)
Returns the 3D point.
Definition: GeomAPI_Pnt2d.cpp:62
3D point defined by three coordinates
Definition: GeomAPI_Pnt.h:38
2 coordinates: they may represent vector or point or something else
Definition: GeomAPI_XY.h:32