calculate time segment itime and fractional time ftime */
| 213 | |
| 214 | /* calculate time segment itime and fractional time ftime */ |
| 215 | __forceinline int getTimeSegment(float time, float numTimeSegments, float& ftime) |
| 216 | { |
| 217 | const float timeScaled = time * numTimeSegments; |
| 218 | const float itimef = clamp(floor(timeScaled), 0.0f, numTimeSegments-1.0f); |
| 219 | ftime = timeScaled - itimef; |
| 220 | return int(itimef); |
| 221 | } |
| 222 | |
| 223 | __forceinline int getTimeSegment(float time, float start_time, float end_time, float numTimeSegments, float& ftime) |
| 224 | { |
no test coverage detected