MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / smoothStep

Function smoothStep

jni/venus/scalar.h:236–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234 */
235template <typename T>
236inline 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected