36 vector<double>::iterator after = lower_bound( ReedSizes.begin(), ReedSizes.end(), dThickness );
38 if ( after == ReedSizes.begin() )
41 if ( after == ReedSizes.end() )
42 return( *(after - 1 ) );
44 return (*after - dThickness) < ( dThickness - *(after-1) ) ? *after : *(after - 1);
double GetClosestReedThickness(double dThickness)
Namespace containing a series of customised math operations not found in the standard c++ library.
static double ReedThickness[NUM_REED_SIZES]