[This is preliminary documentation and is subject to change.]

Clamps the value to a positive non-zero value.

Namespace: org.critterai
Assembly: cai-util (in cai-util.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static float ClampToPositiveNonZero(
	float value
)
Public Shared Function ClampToPositiveNonZero ( _
	value As Single _
) As Single
public:
static float ClampToPositiveNonZero(
	float value
)

Parameters

value
Single
The value to clamp.

Return Value

The value clamped to a minimum of the smallest possible positive value greater than zero.

See Also