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

  • Lazycog
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    2 days ago

    Good answer! I can’t recommend a library right now, but I recommend looking into the geometric term “Point in Polygon” to further read about this task/problem.

    Edit: wanted to clarify that I just wanted to give a better keyword for OP to search for a solution.