Ignore:
Timestamp:
11/17/03 22:26:16 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mdata
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mdata/MDataChain.cc

    r2328 r2521  
    7777//   floor(x)  round down to the nearest integer (floor(9.9)=9)
    7878//   ceil(x)   round up   to the nearest integer (floor(9.1)=10)
     79//   round(x)  round      to the nearest integer
    7980//   r2d(x)    transform radians to degrees
    8081//   d2r(x)    transform degrees to radians
     
    565566    case kEFloor:    return TMath::Floor(val);
    566567    case kECeil:     return TMath::Ceil(val);
     568    case kERound:    return TMath::Nint(val);
    567569    case kERad2Deg:  return val*180/TMath::Pi();
    568570    case kEDeg2Rad:  return val*TMath::Pi()/180;
     
    664666    case kEFloor:    str += "floor" ; break;
    665667    case kECeil:     str += "ceil"  ; break;
     668    case kERound:    str += "round" ; break;
    666669    case kERad2Deg:  str += "r2d"   ; break;
    667670    case kEDeg2Rad:  str += "d2r"   ; break;
  • trunk/MagicSoft/Mars/mdata/MDataChain.h

    r2328 r2521  
    3131        kEPositive,
    3232        kENegative,
    33         kEFloor, kECeil,
     33        kEFloor, kECeil, kERound,
    3434        kERad2Deg, kEDeg2Rad, kERandom,
    3535        kERandomP, kERandomE, kERandomI, kERandomG, kERandomL,
Note: See TracChangeset for help on using the changeset viewer.