Main Page   Namespace List   Class Hierarchy   Compound List   File List   Header Files   Sources   Namespace Members   Compound Members   File Members  

curve_distance2 Class Reference

A helper class, used in the implementation of nearest_point function. More...

Class diagram for curve_distance2:

func::single_dimension

List of all members.


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 curvec
The curve for which the distance is measured.

const vector2p
The point from which the distance is measured.


Detailed Description

A helper class, used in the implementation of 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.


Member Function Documentation

curve_distance2::curve_distance2 (void) [inline]

Definition at line 182 of file curve.cpp.

curve_distance2::~curve_distance2 (void) [inline, virtual]

Definition at line 196 of file curve.cpp.

double curve_distance2::operator() (const double) const [virtual]

Calculate the function for a given argument.

Parameters:
x   the argument for which the function is to be calculated
Returns:
The value of the function for argument x.

Reimplemented from func::single_dimension.

Definition at line 202 of file curve.cpp.


Member Data Documentation

const curve* curve_distance2::c

The curve for which the distance is measured.

Definition at line 171 of file curve.cpp.

const vector2* curve_distance2::p

The point from which the distance is measured.

Definition at line 176 of file curve.cpp.


The documentation for this class was generated from the following file:
Generated at Sun Jul 14 20:38:17 2002 for Mapper by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999