range(float, float, float)
- Defined in
- CvGameCoreUtils.h, line 37
- Not a hook point
- written in a header
Code
37inline float range(float fNum, float fLow, float fHigh)38{39 CvAssertMsg(fHigh >= fLow, "High should be higher than low");4041 if(fNum < fLow)42 {43 return fLow;44 }45 else if(fNum > fHigh)46 {47 return fHigh;48 }49 else50 {51 return fNum;52 }53}