Applying on the first co - ordinate
x = dx [ i ] + x1 NEW_LINE y = dy [ i ] + y1 NEW_LINE if ( ifRight ( x , y , x2 , y2 , x3 , y3 ) ) : NEW_LINE INDENT print ( " POSSIBLE " ) NEW_LINE return NEW_LINE DEDENT