24 #ifndef GeomAPI_Ellipse_H_
25 #define GeomAPI_Ellipse_H_
27 #include <GeomAPI_Interface.h>
54 GEOMAPI_EXPORT
GeomAPI_Ellipse(
const std::shared_ptr<GeomAPI_Ax2>& theAx2,
55 double theMajorRadius,
double theMinorRadius);
57 GEOMAPI_EXPORT
GeomAPI_Ellipse(std::shared_ptr<GeomAPI_Curve> theCurve);
60 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Pnt>
center()
const;
63 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Pnt>
firstFocus()
const;
66 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Pnt>
secondFocus()
const;
69 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Dir>
normal()
const;
78 GEOMAPI_EXPORT
const std::shared_ptr<GeomAPI_Pnt>
project(
79 const std::shared_ptr<GeomAPI_Pnt>& thePoint)
const;
90 GEOMAPI_EXPORT
const bool parameter(
const std::shared_ptr<GeomAPI_Pnt> thePoint,
91 const double theTolerance,
92 double& theParameter)
const;
96 typedef std::shared_ptr<GeomAPI_Ellipse> GeomEllipsePtr;
The class represents an axis in 3D space.
Definition: GeomAPI_Ax2.h:31
Interface to the generic curve object.
Definition: GeomAPI_Curve.h:34
3D direction defined by three normalized coordinates
Definition: GeomAPI_Dir.h:34
Ellipse in 3D.
Definition: GeomAPI_Ellipse.h:41
GEOMAPI_EXPORT double minorRadius() const
Returns minor radius of the ellipse.
Definition: GeomAPI_Ellipse.cpp:77
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_Pnt > project(const std::shared_ptr< GeomAPI_Pnt > &thePoint) const
Project point on ellipse.
Definition: GeomAPI_Ellipse.cpp:87
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > firstFocus() const
Returns first focus of the ellipse.
Definition: GeomAPI_Ellipse.cpp:58
GEOMAPI_EXPORT double majorRadius() const
Returns major radius of the ellipse.
Definition: GeomAPI_Ellipse.cpp:82
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Dir > normal() const
Return orthogonal direction to the ellipse's plane.
Definition: GeomAPI_Ellipse.cpp:70
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > secondFocus() const
Returns second focus of the ellipse.
Definition: GeomAPI_Ellipse.cpp:64
GEOMAPI_EXPORT GeomAPI_Ellipse()
Constructs an empty ellipse.
Definition: GeomAPI_Ellipse.h:45
GEOMAPI_EXPORT const bool parameter(const std::shared_ptr< GeomAPI_Pnt > thePoint, const double theTolerance, double &theParameter) const
Computes the parameter of a given point on an ellipse.
Definition: GeomAPI_Ellipse.cpp:107
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > center() const
Returns center of the ellipse.
Definition: GeomAPI_Ellipse.cpp:52
General base class for all interfaces in this package.
Definition: GeomAPI_Interface.h:38
3D point defined by three coordinates
Definition: GeomAPI_Pnt.h:38