MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / Lerp

Function Lerp

SampleFramework12/v1.00/SF12_Math.h:530–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528
529// Linear interpolation
530template<typename T> T Lerp(const T& x, const T& y, float s)
531{
532 return x + (y - x) * s;
533}
534
535template<typename T> T Min(T a, T b)
536{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected