Salome HOME
Issue #273: Add copyright string
[modules/shaper.git] / src / GeomAPI / GeomAPI_Circ2d.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        GeomAPI_Circ2d.h
4 // Created:     29 May 2014
5 // Author:      Artem ZHIDKOV
6
7 #ifndef GeomAPI_Circ2d_H_
8 #define GeomAPI_Circ2d_H_
9
10 #include <GeomAPI_Interface.h>
11 #include <memory>
12
13 class GeomAPI_Pnt2d;
14 class GeomAPI_Dir2d;
15
16 /**\class GeomAPI_Circ2d
17  * \ingroup DataModel
18  * \brief Circle in 2D
19  */
20
21 class GEOMAPI_EXPORT GeomAPI_Circ2d : public GeomAPI_Interface
22 {
23  public:
24   /// Creation of circle defined by center point and circle radius
25   GeomAPI_Circ2d(const std::shared_ptr<GeomAPI_Pnt2d>& theCenter,
26                  const std::shared_ptr<GeomAPI_Pnt2d>& theCirclePoint);
27
28   /// Creation of circle defined by center point, direction and circle radius
29   GeomAPI_Circ2d(const std::shared_ptr<GeomAPI_Pnt2d>& theCenter,
30                  const std::shared_ptr<GeomAPI_Dir2d>& theDir, double theRadius);
31
32   /// Return center of the circle
33   const std::shared_ptr<GeomAPI_Pnt2d> center() const;
34
35   /// Return radius of the circle
36   double radius() const;
37
38   /// Project point on line
39   const std::shared_ptr<GeomAPI_Pnt2d> project(
40       const std::shared_ptr<GeomAPI_Pnt2d>& thePoint) const;
41 };
42
43 #endif
44