Changeset 1324 for code/branches/console/src/util
- Timestamp:
- May 19, 2008, 2:58:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/util/Math.h
r1062 r1324 121 121 122 122 template <typename T> 123 inline int mod(T x, int max) 124 { 125 if (x >= 0) 126 return (x % max); 127 else 128 return ((x % max) + max); 129 } 130 131 template <typename T> 123 132 T interpolate(float time, const T& start, const T& end) 124 133 {
Note: See TracChangeset
for help on using the changeset viewer.