Changeset 9026 for code/branches/testing/src
- Timestamp:
- Mar 11, 2012, 9:19:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/testing/src/libraries/util/Math.h
r8729 r9026 139 139 { 140 140 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);150 141 } 151 142
Note: See TracChangeset
for help on using the changeset viewer.