How can I define lines so when I click on the screen, my program knows whether I clicked on A B or C?

  • sip@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    2 days ago

    I do want to mention this is a rabbit hole, as a U shaped polygon can be tricky to check. so I strongly suggest using a library for checking point in polygon.