SHAPER 9.16.0
GeomAPI_Circ2d.h
1// Copyright (C) 2014-2026 CEA, EDF
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20#ifndef GeomAPI_Circ2d_H_
21#define GeomAPI_Circ2d_H_
22
23#include <GeomAPI_Interface.h>
24#include <memory>
25
26class GeomAPI_Ax3;
27class GeomAPI_Pnt2d;
28class GeomAPI_Dir2d;
29class GeomAPI_Shape;
30
37{
38public:
40 GEOMAPI_EXPORT
41 GeomAPI_Circ2d(const double theCenterX, const double theCenterY, const double theRadius);
42
44 GEOMAPI_EXPORT
45 GeomAPI_Circ2d(const std::shared_ptr<GeomAPI_Pnt2d>& theCenter,
46 const std::shared_ptr<GeomAPI_Pnt2d>& theCirclePoint);
47
49 GEOMAPI_EXPORT
50 GeomAPI_Circ2d(const std::shared_ptr<GeomAPI_Pnt2d>& theCenter,
51 const std::shared_ptr<GeomAPI_Dir2d>& theDir, double theRadius);
52
54 GEOMAPI_EXPORT
55 const std::shared_ptr<GeomAPI_Pnt2d> center() const;
56
58 GEOMAPI_EXPORT
59 double radius() const;
60
62 GEOMAPI_EXPORT
63 const std::shared_ptr<GeomAPI_Pnt2d> project(
64 const std::shared_ptr<GeomAPI_Pnt2d>& thePoint) const;
65
75 GEOMAPI_EXPORT const bool parameter(const std::shared_ptr<GeomAPI_Pnt2d> thePoint,
76 const double theTolerance,
77 double& theParameter) const;
78
85 GEOMAPI_EXPORT void D0(const double theU, std::shared_ptr<GeomAPI_Pnt2d>& thePoint);
86};
87
88#endif
89
The class represents a coordinate plane which is 2d plane with X and Y directions and origin.
Definition: GeomAPI_Ax3.h:33
Circle in 2D.
Definition: GeomAPI_Circ2d.h:37
GEOMAPI_EXPORT void D0(const double theU, std::shared_ptr< GeomAPI_Pnt2d > &thePoint)
Returns in thePoint the point of parameter theU.
Definition: GeomAPI_Circ2d.cpp:132
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_Pnt2d > center() const
Return center of the circle.
Definition: GeomAPI_Circ2d.cpp:106
GEOMAPI_EXPORT GeomAPI_Circ2d(const double theCenterX, const double theCenterY, const double theRadius)
Creation of circle defined by center point and circle radius.
Definition: GeomAPI_Circ2d.cpp:57
GEOMAPI_EXPORT const bool parameter(const std::shared_ptr< GeomAPI_Pnt2d > thePoint, const double theTolerance, double &theParameter) const
Computes the parameter of a given point on a circle.
Definition: GeomAPI_Circ2d.cpp:122
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_Pnt2d > project(const std::shared_ptr< GeomAPI_Pnt2d > &thePoint) const
Project point on line.
Definition: GeomAPI_Circ2d.cpp:78
GEOMAPI_EXPORT double radius() const
Return radius of the circle.
Definition: GeomAPI_Circ2d.cpp:114
2D direction defined by three normalized coordinates
Definition: GeomAPI_Dir2d.h:34
General base class for all interfaces in this package.
Definition: GeomAPI_Interface.h:38
2D point defined by two coordinates
Definition: GeomAPI_Pnt2d.h:36
Interface to the topological shape object.
Definition: GeomAPI_Shape.h:43