Click or drag to resize

GLMathfSign Method (Single)

Returns the sign function evaluated at the given value.

Namespace:  Gamelogic.Extensions
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static int Sign(
	float x
)

Parameters

x
Type: SystemSingle

Return Value

Type: Int32
1 if the given value is positive, -1 if it is negative, and 0 if it is 0.
See Also