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
floatThe value at the top-left corner.
b
floatThe value at the top-right corner.
c
floatThe value at the bottom-left corner.
d
floatThe value at the bottom-right corner.
u
floatThe horizontal interpolation parameter (between 0 and 1).
v
floatThe vertical interpolation parameter (between 0 and 1).
Returns
- float
The interpolated value.