nearest_point function.
More...
Class diagram for curve_distance2:

Public Members | |||
![]() | ![]() | curve_distance2 (void) | |
![]() | ![]() | virtual | ~curve_distance2 (void) |
![]() | ![]() | virtual double | operator() ( const double t ) const |
![]() | ![]() | Calculate the function for a given argument. More... | |
![]() | ![]() | const curve* | c |
![]() | ![]() | The curve for which the distance is measured. | |
![]() | ![]() | const vector2* | p |
![]() | ![]() | The point from which the distance is measured. | |
nearest_point function.
This function object represents the square of the distance between a fixed point and a point on a curve. The argument of the function is a parameter giving the point on the curve.
Definition at line 143 of file curve.cpp.
curve_distance2::curve_distance2 (void) [inline]
|
curve_distance2::~curve_distance2 (void) [inline, virtual]
|
double curve_distance2::operator() (const double) const [virtual]
|
Calculate the function for a given argument.
| x | the argument for which the function is to be calculated |
Reimplemented from func::single_dimension.
| const curve* curve_distance2::c |
| const vector2* curve_distance2::p |
1.0.0 written by Dimitri van Heesch,
© 1997-1999