Table of Contents

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 float

The value at the corner (0, 0, 0).

c100 float

The value at the corner (1, 0, 0).

c010 float

The value at the corner (0, 1, 0).

c110 float

The value at the corner (1, 1, 0).

c001 float

The value at the corner (0, 0, 1).

c101 float

The value at the corner (1, 0, 1).

c011 float

The value at the corner (0, 1, 1).

c111 float

The value at the corner (1, 1, 1).

u float

The interpolation parameter along the x-axis (between 0 and 1).

v float

The interpolation parameter along the y-axis (between 0 and 1).

w float

The interpolation parameter along the z-axis (between 0 and 1).

Returns

float

The interpolated value.