20 #ifndef GeomAPI_Dir2d_H_
21 #define GeomAPI_Dir2d_H_
23 #include <GeomAPI_Interface.h>
52 const std::shared_ptr<GeomAPI_XY>
xy();
59 double dot(
const std::shared_ptr<GeomAPI_Dir2d>& theArg)
const;
62 double cross(
const std::shared_ptr<GeomAPI_Dir2d>& theArg)
const;
66 double angle(
const std::shared_ptr<GeomAPI_Dir2d>& theArg)
const;
70 typedef std::shared_ptr<GeomAPI_Dir2d> GeomDir2dPtr;
2D direction defined by three normalized coordinates
Definition: GeomAPI_Dir2d.h:34
GEOMAPI_EXPORT double angle(const std::shared_ptr< GeomAPI_Dir2d > &theArg) const
calculates angle between two directions
Definition: GeomAPI_Dir2d.cpp:67
GEOMAPI_EXPORT double y() const
returns Y coordinate
Definition: GeomAPI_Dir2d.cpp:42
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_XY > xy()
returns coordinates of the direction
Definition: GeomAPI_Dir2d.cpp:47
GEOMAPI_EXPORT GeomAPI_Dir2d(const double theX, const double theY)
Creation of direction by coordinates.
Definition: GeomAPI_Dir2d.cpp:27
GEOMAPI_EXPORT double cross(const std::shared_ptr< GeomAPI_Dir2d > &theArg) const
result is a cross product of two directions
Definition: GeomAPI_Dir2d.cpp:62
GEOMAPI_EXPORT void reverse()
inverses the direction
Definition: GeomAPI_Dir2d.cpp:52
GEOMAPI_EXPORT double x() const
returns X coordinate
Definition: GeomAPI_Dir2d.cpp:37
GEOMAPI_EXPORT double dot(const std::shared_ptr< GeomAPI_Dir2d > &theArg) const
result is a scalar product of directions
Definition: GeomAPI_Dir2d.cpp:57
General base class for all interfaces in this package.
Definition: GeomAPI_Interface.h:38
2 coordinates: they may represent vector or point or something else
Definition: GeomAPI_XY.h:32