MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetInterpWeightX

Method GetInterpWeightX

Source/Internal/timer.cpp:79–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79float Timer::GetInterpWeightX(int num, int progress) {
80 float mult = (1.0f / (float)num);
81 return mult * (float)progress + timestep_error * mult;
82}
83
84float Timer::GetRenderTime() {
85 return game_time + timestep_error * timestep;

Callers 5

GetInterpWeightMethod · 0.80
PreDrawFrameMethod · 0.80
PreDrawCameraMethod · 0.80
GetInterpPositionXMethod · 0.80
GetInterpRotationXMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected