1 // File: GeomAPI_Dir.hxx
2 // Created: 23 Apr 2014
3 // Author: Mikhail PONIKAROV
8 #include <GeomAPI_Interface.h>
9 #include <boost/shared_ptr.hpp>
15 * \brief 3D direction defined by three normalized coordinates
18 class GEOMAPI_EXPORT GeomAPI_Dir : public GeomAPI_Interface
21 /// Creation of direction by coordinates
22 GeomAPI_Dir(const double theX, const double theY, const double theZ);
23 /// Creation of direction by coordinates
24 GeomAPI_Dir(const boost::shared_ptr<GeomAPI_XYZ>& theCoords);
26 /// returns X coordinate
28 /// returns Y coordinate
30 /// returns Z coordinate
33 /// returns coordinates of the direction
34 const boost::shared_ptr<GeomAPI_XYZ> xyz();
36 /// result is a scalar product of directions
37 double dot(const boost::shared_ptr<GeomAPI_Dir>& theArg) const;
38 /// result is a cross product of two directions
39 const boost::shared_ptr<GeomAPI_XYZ> cross(const boost::shared_ptr<GeomAPI_Dir>& theArg) const;