//
// GJScaleControl::valueFromSkew from 0x386db8 to 0x386dfe (70 bytes)
//
// 0 xrefs:
//
// 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 v2; // s15
v2 = (float)(a2 - a1->m_lowerBound) / (float)(a1->m_upperBound - a1->m_lowerBound);
if ( v2 >= 1.0 )
return 1.0;
if ( v2 <= 0.0 )
return 0.0;
return v2;
}