Cobratattoo@feddit.org to Learn Programming@programming.dev · 1 year agoHow to define lines and check on click which body is clicked?feddit.orgimagemessage-square11linkfedilinkarrow-up126file-text
arrow-up126imageHow to define lines and check on click which body is clicked?feddit.orgCobratattoo@feddit.org to Learn Programming@programming.dev · 1 year agomessage-square11linkfedilinkfile-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·1 year 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.