23 #include <GeomAPI_Interface.h>
36 GeomAPI_XY(
const double theX,
const double theY);
47 void setX(
const double theX);
50 void setY(
const double theY);
54 const std::shared_ptr<GeomAPI_XY>
added(
const std::shared_ptr<GeomAPI_XY>& theArg);
57 const std::shared_ptr<GeomAPI_XY>
decreased(
const std::shared_ptr<GeomAPI_XY>& theArg);
60 const std::shared_ptr<GeomAPI_XY>
multiplied(
const double theArg);
64 double dot(
const std::shared_ptr<GeomAPI_XY>& theArg)
const;
67 double cross(
const std::shared_ptr<GeomAPI_XY>& theArg)
const;
71 double distance(
const std::shared_ptr<GeomAPI_XY>& theOther)
const;
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
GEOMAPI_EXPORT double distance(const std::shared_ptr< GeomAPI_XY > &theOther) const
Distance between two pairs.
Definition: GeomAPI_XY.cpp:82
GEOMAPI_EXPORT GeomAPI_XY(const double theX, const double theY)
Creation by coordinates.
Definition: GeomAPI_XY.cpp:26
GEOMAPI_EXPORT double x() const
returns X coordinate
Definition: GeomAPI_XY.cpp:31
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_XY > added(const std::shared_ptr< GeomAPI_XY > &theArg)
result is sum of coordinates of this and the given argument
Definition: GeomAPI_XY.cpp:51
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_XY > multiplied(const double theArg)
result is coordinates multiplied by the argument
Definition: GeomAPI_XY.cpp:66
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_XY > decreased(const std::shared_ptr< GeomAPI_XY > &theArg)
result is difference between coordinates of this and the given argument
Definition: GeomAPI_XY.cpp:58
GEOMAPI_EXPORT void setX(const double theX)
sets X coordinate
Definition: GeomAPI_XY.cpp:41
GEOMAPI_EXPORT double dot(const std::shared_ptr< GeomAPI_XY > &theArg) const
result is a scalar product of two triplets
Definition: GeomAPI_XY.cpp:72
GEOMAPI_EXPORT void setY(const double theY)
sets Y coordinate
Definition: GeomAPI_XY.cpp:46
GEOMAPI_EXPORT double cross(const std::shared_ptr< GeomAPI_XY > &theArg) const
result is a cross product of two triplets
Definition: GeomAPI_XY.cpp:77
GEOMAPI_EXPORT double y() const
returns Y coordinate
Definition: GeomAPI_XY.cpp:36