Changeset 3280 for code/trunk/src/util/Math.h
- Timestamp:
- Jul 12, 2009, 11:58:01 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core4 (added) merged: 3235-3237,3245-3250,3253-3254,3260-3261,3265,3270
- Property svn:mergeinfo changed
-
code/trunk/src/util/Math.h
r3214 r3280 78 78 { 79 79 return (x >= 0) ? 1 : -1; 80 }81 82 /**83 @brief Returns the smaller of two values.84 */85 template <typename T>86 inline T min(T a, T b)87 {88 return (a <= b) ? a : b;89 }90 91 /**92 @brief Returns the greater of two values.93 */94 template <typename T>95 inline T max(T a, T b)96 {97 return (a >= b) ? a : b;98 80 } 99 81
Note: See TracChangeset
for help on using the changeset viewer.