parameters: (self, lastpoint, constrain, point)
return_statement: return fpt
docstring: Return constraints if needed.
docstring_summary: Return constraints if needed.
docstring_tokens: Return constraints if needed .
function: def cstr(self, lastpoint, constrain, point):
          """Return constraints if needed."""
          if constrain or self.mask:
              fpt = self.constrain(point, lastpoint)
          else:
              self.unconstrain()
              fpt = point
          if self.radiusTracker:
              self.radiusTracker.update(fpt)
          return fpt
function_tokens: def cstr ( self , lastpoint , constrain , point ) : if constrain or self . mask : fpt = self . constrain ( point , lastpoint ) else : self . unconstrain ( ) fpt = point if self . radiusTracker : self . radiusTracker . update ( fpt ) return fpt