![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Point-Ellipse extrema computation. More...
#include <ExtremaPC_Ellipse.hxx>
Public Member Functions | |
| ExtremaPC_Ellipse (const gp_Elips &theEllipse) | |
| Constructor with ellipse geometry (full ellipse). | |
| ExtremaPC_Ellipse (const gp_Elips &theEllipse, const ExtremaPC::Domain1D &theDomain) | |
| Constructor with ellipse geometry and parameter domain. | |
| ExtremaPC_Ellipse (const ExtremaPC_Ellipse &)=delete | |
| Copy constructor is deleted. | |
| ExtremaPC_Ellipse & | operator= (const ExtremaPC_Ellipse &)=delete |
| Copy assignment operator is deleted. | |
| ExtremaPC_Ellipse (ExtremaPC_Ellipse &&)=default | |
| Move constructor. | |
| ExtremaPC_Ellipse & | operator= (ExtremaPC_Ellipse &&)=default |
| Move assignment operator. | |
| gp_Pnt | Value (double theU) const |
| Evaluates point on ellipse at parameter. | |
| bool | IsBounded () const |
| Returns true if domain is bounded (partial arc). | |
| const ExtremaPC::Domain1D & | Domain () const |
| Returns the domain (only valid if IsBounded() is true). | |
| const ExtremaPC::Result & | Perform (const gp_Pnt &theP, double theTol, ExtremaPC::SearchMode theMode=ExtremaPC::SearchMode::MinMax) const |
| Compute extrema between point P and the ellipse. Uses domain specified at construction time. | |
| const ExtremaPC::Result & | PerformWithEndpoints (const gp_Pnt &theP, double theTol, ExtremaPC::SearchMode theMode=ExtremaPC::SearchMode::MinMax) const |
| Compute extrema between point P and the ellipse arc including endpoints. Uses domain specified at construction time. | |
| const gp_Elips & | Ellipse () const |
| Returns the ellipse geometry. | |
Point-Ellipse extrema computation.
Computes the extrema between a 3D point and an ellipse. Uses trigonometric equation solving via MathRoot::Trigonometric.
The algorithm:
The domain is fixed at construction time for optimal performance. For full ellipse, construct without domain or with nullopt.
|
inlineexplicit |
Constructor with ellipse geometry (full ellipse).
| [in] | theEllipse | the ellipse to compute extrema for |
|
inline |
Constructor with ellipse geometry and parameter domain.
| [in] | theEllipse | the ellipse to compute extrema for |
| [in] | theDomain | parameter domain in radians (fixed for all queries) |
|
delete |
Copy constructor is deleted.
|
default |
Move constructor.
|
inline |
Returns the domain (only valid if IsBounded() is true).
|
inline |
Returns the ellipse geometry.
|
inline |
Returns true if domain is bounded (partial arc).
|
delete |
Copy assignment operator is deleted.
|
default |
Move assignment operator.
|
inline |
Compute extrema between point P and the ellipse. Uses domain specified at construction time.
| theP | query point |
| theTol | tolerance for degenerate case detection |
| theMode | search mode (MinMax, Min, or Max) |
|
inline |
Compute extrema between point P and the ellipse arc including endpoints. Uses domain specified at construction time.
| theP | query point |
| theTol | tolerance for degenerate case detection |
| theMode | search mode (MinMax, Min, or Max) |
Evaluates point on ellipse at parameter.
| theU | parameter (radians) |