Skip to main content

Module lerp

Module lerp 

Source
Expand description

Linear interpolation and range mapping nodes.

Structsยง

InvLerp
Inverse linear interpolation: map [a, b] to [0, 1].
Lerp
Linear interpolation with fixed endpoints.
Quantize
Quantize an f64 to the nearest multiple of a step size.
Remap
Remap from one range to another.
ScaleRange
Map a u64 linearly to an f64 range.