TestRange function


SUBMITTED BY: Guest

DATE: April 17, 2014, 2:24 p.m.

FORMAT: C++

SIZE: 378 Bytes

HITS: 702

  1. BOOL CRollProfileI::TestRange(double v) const
  2. {
  3. double BL2 = _BarrelLength / 2 + 0.001;
  4. if (_nTypeProfile == SYM)
  5. {
  6. // Test u SYMetrickeho pripadu Profilu
  7. if (v >= 0 && v <= BL2)
  8. return TRUE;
  9. }
  10. else
  11. {
  12. // Test u NOSYMetrickeho pripadu Profilu
  13. if (v >= -BL2 && v <= BL2)
  14. return TRUE;
  15. }
  16. return FALSE;
  17. }

comments powered by Disqus