* @brief Clamp a float value between 0.0f and 1.0f. * * NaNs are turned into 0.0f. * * @param v The value to clamp. * * @return The clamped value. */
| 288 | * @return The clamped value. |
| 289 | */ |
| 290 | static inline float clamp1f(float v) |
| 291 | { |
| 292 | return astc::clamp(v, 0.0f, 1.0f); |
| 293 | } |
| 294 | |
| 295 | /** |
| 296 | * @brief Clamp a float value between 0.0f and 255.0f. |
no test coverage detected