def __init__(self, path, times=None, geodesic=None):
     Interpolator.__init__(self, path[0], path[-1])
     if geodesic != None:
         self.geodesic = geodesic
     else:
         self.geodesic = GeodesicSpace()
     if times != None:
         self.path = path
         self.trajectory = trajectory.Trajectory(times, path)
         if times[0] != 0 or times[-1] != 1:
             raise ValueError(
                 "PiecewiseLinearInterpolator must have time range [0,1]")
     else:
         self.path = path
         self.trajectory = None