#NEWLINE# def __mul__( self , other ) : #NEWLINE# #INDENT# if isinstance ( other , ( float , int ) ) : #NEWLINE# #INDENT# return Vec2 ( ( self . x * other ) , ( other . y * other ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return Vec2 ( ( self . x * other . x ) , ( self . y * other . y ) )