same as invlerp, except that we force clamp the output UnitInterval t to the closed interval [0, 1]