2d linear interpolation in x and y direction for 2d-vectors

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

Syntax

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

Parameters

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

Return Value

Interpolated vector between the 4 vectors of the corners of a unit square

See Also