Method Trilerp
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Trilerp(float, float, float, float, float, float, float, float, float, float, float)
Performs trilinear interpolation between eight values.
[Version(4, 0, 0)]
public static float Trilerp(float c000, float c100, float c010, float c110, float c001, float c101, float c011, float c111, float u, float v, float w)
Parameters
c000
floatThe value at the corner (0, 0, 0).
c100
floatThe value at the corner (1, 0, 0).
c010
floatThe value at the corner (0, 1, 0).
c110
floatThe value at the corner (1, 1, 0).
c001
floatThe value at the corner (0, 0, 1).
c101
floatThe value at the corner (1, 0, 1).
c011
floatThe value at the corner (0, 1, 1).
c111
floatThe value at the corner (1, 1, 1).
u
floatThe interpolation parameter along the x-axis (between 0 and 1).
v
floatThe interpolation parameter along the y-axis (between 0 and 1).
w
floatThe interpolation parameter along the z-axis (between 0 and 1).
Returns
- float
The interpolated value.