Changeset 9077 for code/branches/testing/src
- Timestamp:
- Apr 1, 2012, 6:48:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/testing/src/libraries/util/Math.h
r9026 r9077 238 238 inline T interpolate(float time, const T& start, const T& end) 239 239 { 240 return time * (end - start) + start;240 return static_cast<T>(time * (end - start) + start); 241 241 } 242 242 … … 251 251 inline T interpolateSmooth(float time, const T& start, const T& end) 252 252 { 253 return (-2 * (end - start) * cube(time)) + (3 * (end - start) * square(time)) + start;253 return static_cast<T>((-2 * (end - start) * cube(time)) + (3 * (end - start) * square(time)) + start); 254 254 } 255 255
Note: See TracChangeset
for help on using the changeset viewer.