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 float Wrap(
	float value,
	float min,
	float max
)
Visual Basic (Declaration)
Public Shared Function Wrap ( _
	value As Single, _
	min As Single, _
	max As Single _
) As Single
Visual C++
public:
static float 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.

Return Value

The wrapped value.

See Also