Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Some source code
SUBMITTED BY:
Guest
DATE:
April 3, 2014, 1:47 p.m.
FORMAT:
Text only
SIZE:
421 Bytes
Raw
Download
Tweet
HITS:
1182
Go to comments
Report
double CCurve::GetMaxYValue(double yScale)
{
int nSize = GetSize();
double max = -DBL_MAX;
for ( int i = 0; i < nSize; i++ )
max = __max(max, yScale*GetY(i));
return max;
}
double CCurve::GetMinYValue(double yScale)
{
int nSize = GetSize();
double min = DBL_MAX;
for ( int i = 0; i < nSize; i++ )
min = __min(min, yScale*GetY(i));
return min;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus