lerp static method
Linearly interpolates between two position units.
Returns a when t is 0.0, b when t is 1.0, and a blend of both
for values between 0.0 and 1.0.
Implementation
static PositionUnit lerp(PositionUnit a, PositionUnit b, double t) {
if (t <= 0.0) return a;
if (t >= 1.0) return b;
return a * PositionFixed(1.0 - t) + b * PositionFixed(t);
}