Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Clamps given value into allowed range, by adding or subtracting (upperBound-lowerBound) from the value depending on whether or not value fits into the range.

Namespace: Visual3D
Assembly: Visual3D (in Visual3D.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

      
 C#  Visual Basic 
public static float WrapValue(
	float value,
	float lowerBound,
	float upperBound
)
Public Shared Function WrapValue ( _
	value As Single, _
	lowerBound As Single, _
	upperBound As Single _
) As Single

Parameters

value
Single
lowerBound
Single
upperBound
Single

See Also