20 #ifndef GeomAPI_XYZ_H_
21 #define GeomAPI_XYZ_H_
23 #include <GeomAPI_Interface.h>
36 GeomAPI_XYZ(
const double theX,
const double theY,
const double theZ);
50 void setX(
const double theX);
53 void setY(
const double theY);
56 void setZ(
const double theZ);
60 const std::shared_ptr<GeomAPI_XYZ>
added(
const std::shared_ptr<GeomAPI_XYZ>& theArg);
63 const std::shared_ptr<GeomAPI_XYZ>
decreased(
const std::shared_ptr<GeomAPI_XYZ>& theArg);
66 const std::shared_ptr<GeomAPI_XYZ>
multiplied(
const double theArg);
70 double dot(
const std::shared_ptr<GeomAPI_XYZ>& theArg)
const;
73 const std::shared_ptr<GeomAPI_XYZ>
cross(
const std::shared_ptr<GeomAPI_XYZ>& theArg)
const;
77 double distance(
const std::shared_ptr<GeomAPI_XYZ>& theOther)
const;
84 typedef std::shared_ptr<GeomAPI_XYZ> GeomXYZPtr;
General base class for all interfaces in this package.
Definition: GeomAPI_Interface.h:38
3 coordinates: they may represent vector or point or something else
Definition: GeomAPI_XYZ.h:32
GEOMAPI_EXPORT GeomAPI_XYZ(const double theX, const double theY, const double theZ)
Creation by coordinates.
Definition: GeomAPI_XYZ.cpp:26
GEOMAPI_EXPORT double z() const
returns Z coordinate
Definition: GeomAPI_XYZ.cpp:41
GEOMAPI_EXPORT double squareModulus() const
Square length of triplet from the origin.
Definition: GeomAPI_XYZ.cpp:102
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_XYZ > added(const std::shared_ptr< GeomAPI_XYZ > &theArg)
result is sum of coordinates of this and the given argument
Definition: GeomAPI_XYZ.cpp:61
GEOMAPI_EXPORT void setY(const double theY)
sets Y coordinate
Definition: GeomAPI_XYZ.cpp:51
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_XYZ > multiplied(const double theArg)
result is coordinates multiplied by the argument
Definition: GeomAPI_XYZ.cpp:77
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_XYZ > decreased(const std::shared_ptr< GeomAPI_XYZ > &theArg)
result is difference between coordinates of this and the given argument
Definition: GeomAPI_XYZ.cpp:69
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_XYZ > cross(const std::shared_ptr< GeomAPI_XYZ > &theArg) const
result is a cross product of two triplets
Definition: GeomAPI_XYZ.cpp:89
GEOMAPI_EXPORT double dot(const std::shared_ptr< GeomAPI_XYZ > &theArg) const
result is a scalar product of two triplets
Definition: GeomAPI_XYZ.cpp:84
GEOMAPI_EXPORT double y() const
returns Y coordinate
Definition: GeomAPI_XYZ.cpp:36
GEOMAPI_EXPORT void setZ(const double theZ)
sets Z coordinate
Definition: GeomAPI_XYZ.cpp:56
GEOMAPI_EXPORT void setX(const double theX)
sets X coordinate
Definition: GeomAPI_XYZ.cpp:46
GEOMAPI_EXPORT double x() const
returns X coordinate
Definition: GeomAPI_XYZ.cpp:31
GEOMAPI_EXPORT double distance(const std::shared_ptr< GeomAPI_XYZ > &theOther) const
Distance between two triplets.
Definition: GeomAPI_XYZ.cpp:96