The infamous Map function of vvvv for 2d-vectors and value range bounds

Namespace: VVVV.Utils.VMath
Assembly: VVVV.Utils (in VVVV.Utils.dll) Version: 1.0.4694.10871

Syntax

C#
public static Vector2D Map(
	Vector2D Input,
	double InMin,
	double InMax,
	double OutMin,
	double OutMax,
	TMapMode mode
)

Parameters

Input
Type: VVVV.Utils.VMath..::..Vector2D
Input value to convert
InMin
Type: System..::..Double
Minimum of input value range
InMax
Type: System..::..Double
Maximum of input value range
OutMin
Type: System..::..Double
Minimum of destination value range
OutMax
Type: System..::..Double
Maximum of destination value range
mode
Type: VVVV.Utils.VMath..::..TMapMode
Defines the behavior of the function if the input value exceeds the destination range TMapMode

Return Value

Input vector mapped from input range into destination range

See Also