MCPcopy Create free account
hub / github.com/DFHack/dfhack / Lerp

Function Lerp

plugins/remotefortressreader/remotefortressreader.cpp:1641–1644  ·  view source on GitHub ↗

NB: Cannot be called 'lerp': https://en.cppreference.com/w/cpp/numeric/lerp

Source from the content-addressed store, hash-verified

1639
1640// NB: Cannot be called 'lerp': https://en.cppreference.com/w/cpp/numeric/lerp
1641float Lerp(float a, float b, float f)
1642{
1643 return a + f * (b - a);
1644}
1645
1646void GetWounds(df::unit_wound * wound, UnitWound * send_wound)
1647{

Callers 1

GetUnitListInsideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected