#NEWLINE# def overlaps( self , other ) : #NEWLINE# #INDENT# if isinstance ( other , AARectShape ) : #NEWLINE# #INDENT# return aa_rect_overlaps_aa_rect ( self , other ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( other , CircleShape ) : #NEWLINE# #INDENT# return aa_rect_overlaps_circle ( self , other ) #NEWLINE# #UNINDENT# #UNINDENT# raise NotImplementedError ( 'Collision between AARectShape and {0} is not implemented' . format ( other . __class__ . __name__ ) )