Skip to content

method isLeft() cause #1

Description

@ZhoChoran

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions