MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetGraphY

Function GetGraphY

Descent3/debuggraph.cpp:411–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411void GetGraphY(int *y, int value, int max, int min) {
412 float range;
413 range = float(value - min) / float(max - min);
414
415 *y = TOP_T + 64 - int(range * 64.0);
416}
417
418void GetGraphY(int *y, float value, float max, float min) {
419 float range;

Callers 1

RenderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected