Cobratattoo@feddit.org to Learn Programming@programming.dev · 3 days agoHow to define lines and check on click which body is clicked?feddit.orgimagemessage-square12fedilinkarrow-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 · 3 days agomessage-square12fedilinkfile-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·3 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.