1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
4 // Created: 29 May 2014
5 // Author: Artem ZHIDKOV
10 #include <GeomAPI_Interface.h>
21 class GeomAPI_Lin : public GeomAPI_Interface
24 /// Creation of line defined by cordinates of start and end points
26 GeomAPI_Lin(const double theStartX, const double theStartY, const double theStartZ,
27 const double theEndX, const double theEndY, const double theEndZ);
28 /// Creation of line defined by start and end points
30 GeomAPI_Lin(const std::shared_ptr<GeomAPI_Pnt>& theStart,
31 const std::shared_ptr<GeomAPI_Pnt>& theEnd);
33 /// Returns point on the line (first point)
35 std::shared_ptr<GeomAPI_Pnt> location();
37 /// Returns a line direction
39 std::shared_ptr<GeomAPI_Dir> direction();
41 /// Distance between two points
43 double distance(const std::shared_ptr<GeomAPI_Pnt>& thePoint) const;
44 /// Intersection of two lines
46 const std::shared_ptr<GeomAPI_Pnt> intersect(
47 const std::shared_ptr<GeomAPI_Lin>& theLine) const;
48 /// Project point on line
50 const std::shared_ptr<GeomAPI_Pnt> project(
51 const std::shared_ptr<GeomAPI_Pnt>& thePoint) const;