Cobratattoo@feddit.org to Learn Programming@programming.dev · 2 days agoHow to define lines and check on click which body is clicked?feddit.orgimagemessage-square10fedilinkarrow-up126arrow-down11file-text
arrow-up125arrow-down1imageHow to define lines and check on click which body is clicked?feddit.orgCobratattoo@feddit.org to Learn Programming@programming.dev · 2 days agomessage-square10fedilinkfile-text
How can I define lines so when I click on the screen, my program knows whether I clicked on A B or C?
minus-squaresip@programming.devlinkfedilinkarrow-up5·2 days agoI 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.
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.