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