Builds a matrix that interpolates 4d-vectors like a 2d bilinear interpolation in x and y direction Should be used to transform 4d vectors with interpolation foacors in the 4d-form (x, y, x*y, 1)

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

Syntax

C#
public static Matrix4x4 BilerpMatrix(
	Vector4D P1,
	Vector4D P2,
	Vector4D P3,
	Vector4D P4
)

Parameters

P1
Type: VVVV.Utils.VMath..::..Vector4D
Upper left vector
P2
Type: VVVV.Utils.VMath..::..Vector4D
Upper right vector
P3
Type: VVVV.Utils.VMath..::..Vector4D
Lower right vector
P4
Type: VVVV.Utils.VMath..::..Vector4D
Lower left vector

Return Value

Linear interpolation matrix, can be used to interpolate 4d vectors with interpolation factors in the 4d-form (x, y, x*y, 1)

See Also