| 234 | */ |
| 235 | template <typename T> |
| 236 | inline T smoothStep(const T& src, const T& dst, const float& amount) |
| 237 | { |
| 238 | float num = clamp<float>(amount, 0, 1); |
| 239 | return lerp<T>(src, dst, num*num*(3-2*num)); |
| 240 | } |
| 241 | |
| 242 | /** |
| 243 | * Normal distribution, also known as Gaussian distribution. |
nothing calls this directly
no outgoing calls
no test coverage detected