You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assume P0(0,0) P1(4,0) P2(4,2)
by this isLeft(), we get -42-00 = -4 , where PO->P1->P2 is leftTurn on graph.
it should be (P1.x - P0.x) * (P2.y - P1.y) - (P2.x - P1.x) * (P1.y - P0.y);
assume P0(0,0) P1(4,0) P2(4,2)
by this isLeft(), we get -42-00 = -4 , where PO->P1->P2 is leftTurn on graph.
it should be (P1.x - P0.x) * (P2.y - P1.y) - (P2.x - P1.x) * (P1.y - P0.y);