Linear interpolate for segment generation