1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomAPI_Dir.hxx
4 // Created: 23 Apr 2014
5 // Author: Mikhail PONIKAROV
10 #include <GeomAPI_Interface.h>
17 * \brief 3D direction defined by three normalized coordinates
20 class GEOMAPI_EXPORT GeomAPI_Dir : public GeomAPI_Interface
23 /// Creation of direction by coordinates
24 GeomAPI_Dir(const double theX, const double theY, const double theZ);
25 /// Creation of direction by coordinates
26 GeomAPI_Dir(const std::shared_ptr<GeomAPI_XYZ>& theCoords);
28 /// returns X coordinate
30 /// returns Y coordinate
32 /// returns Z coordinate
35 /// returns coordinates of the direction
36 const std::shared_ptr<GeomAPI_XYZ> xyz();
38 /// result is a scalar product of directions
39 double dot(const std::shared_ptr<GeomAPI_Dir>& theArg) const;
40 /// result is a cross product of two directions
41 const std::shared_ptr<GeomAPI_XYZ> cross(const std::shared_ptr<GeomAPI_Dir>& theArg) const;