Some source code


SUBMITTED BY: Guest

DATE: April 3, 2014, 1:47 p.m.

FORMAT: Text only

SIZE: 421 Bytes

HITS: 1182

  1. double CCurve::GetMaxYValue(double yScale)
  2. {
  3. int nSize = GetSize();
  4. double max = -DBL_MAX;
  5. for ( int i = 0; i < nSize; i++ )
  6. max = __max(max, yScale*GetY(i));
  7. return max;
  8. }
  9. double CCurve::GetMinYValue(double yScale)
  10. {
  11. int nSize = GetSize();
  12. double min = DBL_MAX;
  13. for ( int i = 0; i < nSize; i++ )
  14. min = __min(min, yScale*GetY(i));
  15. return min;
  16. }

comments powered by Disqus