Click or drag to resize

GLMathfSign Method (Int32)

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(
	int p
)

Parameters

p
Type: SystemInt32

Return Value

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