#NEWLINE# def move( self , v ) : #NEWLINE# #INDENT# 'v is a tuple of x/y coordinates to move object' #NEWLINE# ( vx , vy ) = v #NEWLINE# ( vx , vy ) = ( ( ( vx * math . cos ( self . angle ) ) - ( vy * math . sin ( self . angle ) ) ) , ( ( vx * math . sin ( self . angle ) ) + ( vy * math . cos ( self . angle ) ) ) ) #NEWLINE# def _move( xy ) : #NEWLINE# #INDENT# ( x , y ) = xy #NEWLINE# return ( ( x + vx ) , ( y + vy ) ) #NEWLINE# #UNINDENT# self . pts = [ p for p in map ( ( lambda x : _move ( x ) ) , self . pts ) ] #NEWLINE# self . center = _move ( self . center )