Skip to main content

lerp3

Function lerp3 

Source
pub fn lerp3<F>(
    a1: F,
    a2: F,
    a3: F,
    x000: F,
    x100: F,
    x010: F,
    x110: F,
    x001: F,
    x101: F,
    x011: F,
    x111: F,
) -> F
where F: Copy + Mul<Output = F> + Add<Output = F> + Sub<Output = F>,
Expand description

Trilinear interpolation.

Interpolates between 8 values in a 3D grid.

Java reference: Mth.lerp3(...)