//
// GJScaleControl::valueFromSkew from 0x695914 to 0x695950 (60 bytes)
//
// 1 xrefs:
// > ??> @ 0xa8198
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float GJScaleControl::valueFromSkew(GJScaleControl *a1, float a2)
{
float result; // s0
result = (float)(a2 - a1->m_lowerBound) / (float)(a1->m_upperBound - a1->m_lowerBound);
if ( result >= 1.0 )
return 1.0;
if ( result <= 0.0 )
return 0.0;
return result;
}