Sgn#

inline float Sgn(float x)#

Computes the sign of a value.

Parameters:

x[in] Input value

Returns:

-1.0f if x < 0, 1.0f otherwise