Expand description
Scalar linear-interpolation primitives with pinned operation order.
GNSS interpolators are bit-exact against deployed references, so the two distinct evaluation orders below are kept as separate named helpers rather than folded into one: callers that precompute a fraction need divide-before-multiply, while clock interpolators pin multiply-before-divide.
Functionsยง
- lerp
- Linear interpolation by a precomputed fraction:
a + (b - a) * t. - lerp_
ratio - Linear interpolation by an explicit ratio, multiplying before dividing:
a + (b - a) * num / den.