parameters: (self, t)
return_statement: return remRamp
docstring: Cut reduces the duration of this ramp to t and returns the remaining ramp (duration - t).
docstring_summary: Cut reduces the duration of this ramp to t and returns the remaining ramp (duration - t).
docstring_tokens: Cut reduces the duration of this ramp to t and returns the remaining ramp ( duration - t ) .
function: def Cut(self, t):
          """
          Cut reduces the duration of this ramp to t and returns the remaining ramp (duration - t).
          """
          t = ConvertFloatToMPF(t)
          assert(t >= -epsilon)
          assert(t <= self.duration + epsilon)
  
          if (t <= 0):
              remRamp = Ramp(self.v0, self.a, self.duration, self.x0)
              self.Initialize(self.v0, 0, 0, self.x0)
              return remRamp
          elif (t >= self.duration):
              renRamp = Ramp(self.v1, 0, 0, self.x1)
              return remRamp
  
          remRampDuration = Sub(self.duration, t)
          self.UpdateDuration(t)
          remRamp = Ramp(self.v1, self.a, remRampDuration, self.x1)
          return remRamp
function_tokens: def Cut ( self , t ) : t = ConvertFloatToMPF ( t ) assert ( t >= - epsilon ) assert ( t <= self . duration + epsilon ) if ( t <= 0 ) : remRamp = Ramp ( self . v0 , self . a , self . duration , self . x0 ) self . Initialize ( self . v0 , 0 , 0 , self . x0 ) return remRamp elif ( t >= self . duration ) : renRamp = Ramp ( self . v1 , 0 , 0 , self . x1 ) return remRamp remRampDuration = Sub ( self . duration , t ) self . UpdateDuration ( t ) remRamp = Ramp ( self . v1 , self . a , remRampDuration , self . x1 ) return remRamp