![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Point-Parabola extrema computation. More...
#include <ExtremaPC_Parabola.hxx>
Public Member Functions | |
| ExtremaPC_Parabola (const gp_Parab &theParabola) | |
| Constructor with parabola geometry (infinite). | |
| ExtremaPC_Parabola (const gp_Parab &theParabola, const ExtremaPC::Domain1D &theDomain) | |
| Constructor with parabola geometry and parameter domain. | |
| ExtremaPC_Parabola (const ExtremaPC_Parabola &)=delete | |
| Copy constructor is deleted. | |
| ExtremaPC_Parabola & | operator= (const ExtremaPC_Parabola &)=delete |
| Copy assignment operator is deleted. | |
| ExtremaPC_Parabola (ExtremaPC_Parabola &&)=default | |
| Move constructor. | |
| ExtremaPC_Parabola & | operator= (ExtremaPC_Parabola &&)=default |
| Move assignment operator. | |
| gp_Pnt | Value (double theU) const |
| Evaluates point on parabola at parameter using cached geometry. | |
| bool | IsBounded () const |
| Returns true if domain is bounded. | |
| 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 parabola. 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 parabola arc including endpoints. Uses domain specified at construction time. | |
| const gp_Parab & | Parabola () const |
| Returns the parabola geometry. | |
Point-Parabola extrema computation.
Computes the extrema between a 3D point and a parabola. Uses cubic polynomial solving via MathPoly::Cubic.
The algorithm:
The domain is fixed at construction time for optimal performance. For infinite parabola, construct without domain or with nullopt.
|
inlineexplicit |
Constructor with parabola geometry (infinite).
| [in] | theParabola | the parabola to compute extrema for |
|
inline |
Constructor with parabola geometry and parameter domain.
| [in] | theParabola | the parabola to compute extrema for |
| [in] | theDomain | parameter domain (fixed for all queries) |
|
delete |
Copy constructor is deleted.
|
default |
Move constructor.
|
inline |
Returns the domain (only valid if IsBounded() is true).
|
inline |
Returns true if domain is bounded.
|
delete |
Copy assignment operator is deleted.
|
default |
Move assignment operator.
|
inline |
Returns the parabola geometry.
|
inline |
Compute extrema between point P and the parabola. Uses domain specified at construction time.
| theP | query point |
| theTol | tolerance for duplicate detection |
| theMode | search mode (MinMax, Min, or Max) |
|
inline |
Compute extrema between point P and the parabola arc including endpoints. Uses domain specified at construction time.
| theP | query point |
| theTol | tolerance for duplicate detection |
| theMode | search mode (MinMax, Min, or Max) |
Evaluates point on parabola at parameter using cached geometry.
| theU | parameter |