Public Member Functions | Protected Attributes

AlongVectorFunction< RT, PT > Class Template Reference

A MathFunction that cuts through another mathfunction with higher number of dimensions. More...

Inheritance diagram for AlongVectorFunction< RT, PT >:
MathFunction< RT, PT > MathFunctionND< RT, PT >

List of all members.

Public Member Functions

 AlongVectorFunction (const MathFunctionND< RT, PT > &func_, const PT *P_, const PT *N_)
RT getValue (PT lambda) const

Protected Attributes

const PT * P
const PT * N
const MathFunctionND< RT, PT > & func

Detailed Description

template<class RT, class PT>
class AlongVectorFunction< RT, PT >

A MathFunction that cuts through another mathfunction with higher number of dimensions.

A starting point (P) and a vector (N) is used to project a line through a MathFunctionND (func). The value returned is:

f(x) = func(P+N*x)


Constructor & Destructor Documentation

template<class RT , class PT >
AlongVectorFunction< RT, PT >::AlongVectorFunction ( const MathFunctionND< RT, PT > &  func_,
const PT *  P_,
const PT *  N_ 
) [inline]

Member Function Documentation

template<class RT , class PT >
RT AlongVectorFunction< RT, PT >::getValue ( PT  lambda  )  const [inline, virtual]

Member Data Documentation

template<class RT , class PT >
const MathFunctionND<RT,PT>& AlongVectorFunction< RT, PT >::func [protected]
template<class RT , class PT >
const PT* AlongVectorFunction< RT, PT >::N [protected]
template<class RT , class PT >
const PT* AlongVectorFunction< RT, PT >::P [protected]