The infamous Map function of vvvv for 4d-vectors and range bounds given as vectors

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

Syntax

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

Parameters

Input
Type: VVVV.Utils.VMath..::..Vector4D
Input value to convert
InMin
Type: VVVV.Utils.VMath..::..Vector4D
Minimum of input value range
InMax
Type: VVVV.Utils.VMath..::..Vector4D
Maximum of input value range
OutMin
Type: VVVV.Utils.VMath..::..Vector4D
Minimum of destination value range
OutMax
Type: VVVV.Utils.VMath..::..Vector4D
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