![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Distance function for point-curve extrema computation. More...
#include <ExtremaPC_DistanceFunction.hxx>
Public Member Functions | |
| ExtremaPC_DistanceFunction (const Adaptor3d_Curve &theCurve, const gp_Pnt &theP) | |
| Constructor. | |
| bool | Value (double theU, double &theF) const |
| Computes F(u) = (C(u) - P) . C'(u). | |
| bool | Values (double theU, double &theF, double &theDF) const |
| Computes F(u) and F'(u). F(u) = (C(u) - P) . C'(u) F'(u) = C'(u) . C'(u) + (C(u) - P) . C''(u) | |
| bool | Derivative (double theU, double &theDF) const |
| Computes the derivative F'(u). | |
| double | FirstParameter () const |
| Returns the first parameter of the curve. | |
| double | LastParameter () const |
| Returns the last parameter of the curve. | |
| const gp_Pnt & | Point () const |
| Returns the query point. | |
| const Adaptor3d_Curve & | Curve () const |
| Returns the curve. | |
Distance function for point-curve extrema computation.
Implements the function F(u) = (C(u) - P) . C'(u) and its derivative F'(u) = C'(u) . C'(u) + (C(u) - P) . C''(u).
The roots of F(u) = 0 correspond to the extrema (local minima and maxima) of the squared distance function D(u) = ||C(u) - P||^2.
This class provides the interface required by MathRoot::FindAllRootsWithDerivative.
|
inline |
Constructor.
| theCurve | the curve adaptor |
| theP | the query point |
|
inline |
Returns the curve.
Computes the derivative F'(u).
| theU | parameter value |
| theDF | output: derivative value |
|
inline |
Returns the first parameter of the curve.
|
inline |
Returns the last parameter of the curve.
|
inline |
Returns the query point.
Computes F(u) = (C(u) - P) . C'(u).
| theU | parameter value |
| theF | output: function value |
Computes F(u) and F'(u). F(u) = (C(u) - P) . C'(u) F'(u) = C'(u) . C'(u) + (C(u) - P) . C''(u)
| theU | parameter value |
| theF | output: function value |
| theDF | output: derivative value |