Wrap Method (Single, Single, Single)

Project Mercury API

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

Wraps the specified value to be within the specified range.

Namespace:  ProjectMercury
Assembly:  ProjectMercury (in ProjectMercury.dll) Version: 3.1.0.0

Syntax

C#
public static void Wrap(
	ref float value,
	float min,
	float max
)
Visual Basic (Declaration)
Public Shared Sub Wrap ( _
	ByRef value As Single, _
	min As Single, _
	max As Single _
)
Visual C++
public:
static void Wrap(
	float% value, 
	float min, 
	float max
)

Parameters

value
Type: System..::.Single %
The value to wrap.
min
Type: System..::.Single
The minimum value.
max
Type: System..::.Single
The maximum value.

See Also