Function mapIntervalToBezierT

Maps an interval to the corresponding t parameter on the Bezier curve based on length.