| 548 | |
| 549 | COVERAGE(HMM_Clamp, 1) |
| 550 | static inline float HMM_Clamp(float Min, float Value, float Max) |
| 551 | { |
| 552 | ASSERT_COVERED(HMM_Clamp); |
| 553 | |
| 554 | float Result = Value; |
| 555 | |
| 556 | if (Result < Min) |
| 557 | { |
| 558 | Result = Min; |
| 559 | } |
| 560 | |
| 561 | if (Result > Max) |
| 562 | { |
| 563 | Result = Max; |
| 564 | } |
| 565 | |
| 566 | return Result; |
| 567 | } |
| 568 | |
| 569 | |
| 570 | /* |