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
c000floatThe value at the corner (0, 0, 0).
c100floatThe value at the corner (1, 0, 0).
c010floatThe value at the corner (0, 1, 0).
c110floatThe value at the corner (1, 1, 0).
c001floatThe value at the corner (0, 0, 1).
c101floatThe value at the corner (1, 0, 1).
c011floatThe value at the corner (0, 1, 1).
c111floatThe value at the corner (1, 1, 1).
ufloatThe interpolation parameter along the x-axis (between 0 and 1).
vfloatThe interpolation parameter along the y-axis (between 0 and 1).
wfloatThe interpolation parameter along the z-axis (between 0 and 1).
Returns
- float
The interpolated value.