Changeset 2521 for trunk/MagicSoft/Mars/mdata
- Timestamp:
- 11/17/03 22:26:16 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mdata
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdata/MDataChain.cc
r2328 r2521 77 77 // floor(x) round down to the nearest integer (floor(9.9)=9) 78 78 // ceil(x) round up to the nearest integer (floor(9.1)=10) 79 // round(x) round to the nearest integer 79 80 // r2d(x) transform radians to degrees 80 81 // d2r(x) transform degrees to radians … … 565 566 case kEFloor: return TMath::Floor(val); 566 567 case kECeil: return TMath::Ceil(val); 568 case kERound: return TMath::Nint(val); 567 569 case kERad2Deg: return val*180/TMath::Pi(); 568 570 case kEDeg2Rad: return val*TMath::Pi()/180; … … 664 666 case kEFloor: str += "floor" ; break; 665 667 case kECeil: str += "ceil" ; break; 668 case kERound: str += "round" ; break; 666 669 case kERad2Deg: str += "r2d" ; break; 667 670 case kEDeg2Rad: str += "d2r" ; break; -
trunk/MagicSoft/Mars/mdata/MDataChain.h
r2328 r2521 31 31 kEPositive, 32 32 kENegative, 33 kEFloor, kECeil, 33 kEFloor, kECeil, kERound, 34 34 kERad2Deg, kEDeg2Rad, kERandom, 35 35 kERandomP, kERandomE, kERandomI, kERandomG, kERandomL,
Note:
See TracChangeset
for help on using the changeset viewer.