Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 11, 2012, 9:19:47 PM (13 years ago)
Author:
landauf
Message:

removed obsolete (and wrong for negative values) round() function (exists also in cmath)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/testing/src/libraries/util/Math.h

    r8729 r9026  
    139139    {
    140140        return x*x*x;
    141     }
    142 
    143     /**
    144         @brief Rounds the value to the nearest integer.
    145     */
    146     template <typename T>
    147     inline int round(T x)
    148     {
    149         return static_cast<int>(x + 0.5);
    150141    }
    151142
Note: See TracChangeset for help on using the changeset viewer.