t is a distance here, not time or interval [0..1]. naming it t is very confusing. may be d or dist?