Nuclide
Software Development Kit for id Tech
util.h File Reference

Go to the source code of this file.

Functions

int Util_CheckMouse (int x, int y, int sx, int sy)
 
string Util_CmdToKey (string cmd)
 
float lerp (float fA, float fB, float fPercent)
 Linear lerp function. More...
 

Function Documentation

◆ lerp()

float lerp ( float  startValue,
float  endValue,
float  lerpAmount 
)

Linear lerp function.

Parameters
startValueis the value closest when lerpAmount is 0.0
endValueis the value closest when lerpAmount is 1.0
lerpAmountis the lerp value. Between 0.0 and 1.0 is common.
Returns
Interpolated value between start and end.

◆ Util_CheckMouse()

int Util_CheckMouse ( int  x,
int  y,
int  sx,
int  sy 
)

◆ Util_CmdToKey()

string Util_CmdToKey ( string  cmd)