Table of Contents

Method Bilerp

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Bilerp(float, float, float, float, float, float)

Performs bilinear interpolation between four values.

[Version(4, 0, 0)]
public static float Bilerp(float a, float b, float c, float d, float u, float v)

Parameters

a float

The value at the top-left corner.

b float

The value at the top-right corner.

c float

The value at the bottom-left corner.

d float

The value at the bottom-right corner.

u float

The horizontal interpolation parameter (between 0 and 1).

v float

The vertical interpolation parameter (between 0 and 1).

Returns

float

The interpolated value.