parameters: (alpha, a, b)
return_statement: return t, lat, lon, alt
docstring: Interpolate gpx point as (1 - alpha) * a + alpha * b
docstring_summary: Interpolate gpx point as (1 - alpha) * a + alpha * b
docstring_tokens: Interpolate gpx point as ( 1 - alpha ) * a + alpha * b
function: def gpx_lerp(alpha, a, b):
      '''Interpolate gpx point as (1 - alpha) * a + alpha * b
      '''
      dt = alpha * (b[0] - a[0]).total_seconds()
      t = a[0] + datetime.timedelta(seconds=dt)
      lat = (1 - alpha) * a[1] + alpha * b[1]
      lon = (1 - alpha) * a[2] + alpha * b[2]
      alt = (1 - alpha) * a[3] + alpha * b[3]
      return t, lat, lon, alt
function_tokens: def gpx_lerp ( alpha , a , b ) : dt = alpha * ( b [ 0 ] - a [ 0 ] ) . total_seconds ( ) t = a [ 0 ] + datetime . timedelta ( seconds = dt ) lat = ( 1 - alpha ) * a [ 1 ] + alpha * b [ 1 ] lon = ( 1 - alpha ) * a [ 2 ] + alpha * b [ 2 ] alt = ( 1 - alpha ) * a [ 3 ] + alpha * b [ 3 ] return t , lat , lon , alt