Skip to main contentModule interpolation
Source - clamp
- Clamp a value to the range [min, max].
- clamp_i32
- Clamp a value to the range [min, max] (i32 version).
- clamped_lerp
- Clamped linear interpolation.
- clamped_lerp_simd
- Clamped lerp for N lanes.
- inverse_lerp
- Inverse linear interpolation (find the factor t such that lerp(t, a, b) == value).
- lerp
- Linear interpolation.
- lerp2
- Bilinear interpolation.
- lerp3
- Trilinear interpolation.
- lerp2_simd
- SIMD bilinear interpolation.
- lerp3_simd
- Trilinear interpolation for N lanes. see lerp3.
- lerp_simd
- SIMD linear interpolation.
- map
- Map a value from one range to another (unclamped).
- map_clamped
- Map a value from one range to another with clamped lerp.
- smoothstep
- Smoothstep - quintic Hermite interpolation (NOT cubic!)
- smoothstep_derivative
- Smoothstep derivative for noise with derivatives.
- smoothstep_simd
- Smoothstep for N lanes: 6x^5 - 15x^4 + 10x^3. Per-lane identical to
smoothstep.