2d linear interpolation in x and y direction for single values

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

Syntax

C#
public static double Bilerp(
	Vector2D Input,
	double P1,
	double P2,
	double P3,
	double P4
)

Parameters

Input
Type: VVVV.Utils.VMath..::..Vector2D
The position where to interpolate, 0..1
P1
Type: System..::..Double
Upper left value
P2
Type: System..::..Double
Upper right value
P3
Type: System..::..Double
Lower right value
P4
Type: System..::..Double
Lower left value

Return Value

Interpolated value between the 4 values of the corners of a unit square

See Also