Sign#

inline double Sign(double x)#

Computes the sign of a double value.

Parameters:

x – [in] Input value

Returns:

-1.0f if x < 0, 1.0f otherwise