#NEWLINE# def rotate( self , angle ) : #NEWLINE# #INDENT# s = math . sin ( ( - angle ) ) #NEWLINE# c = math . cos ( ( - angle ) ) #NEWLINE# a = self . matrix [ 0 ] #NEWLINE# b = self . matrix [ 1 ] #NEWLINE# m1 = ( a * c ) #NEWLINE# m2 = ( b * s ) #NEWLINE# self . matrix [ 0 ] = ( m1 - m2 ) #NEWLINE# m1 = ( a * s ) #NEWLINE# m2 = ( b * c ) #NEWLINE# self . matrix [ 1 ] = ( m1 + m2 ) #NEWLINE# a = self . matrix [ 3 ] #NEWLINE# b = self . matrix [ 4 ] #NEWLINE# m1 = ( a * c ) #NEWLINE# m2 = ( b * s ) #NEWLINE# self . matrix [ 3 ] = ( m1 - m2 ) #NEWLINE# m1 = ( a * s ) #NEWLINE# m2 = ( b * c ) #NEWLINE# self . matrix [ 4 ] = ( m1 + m2 )