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-squareShortFuse@lemmy.worldlinkfedilinkarrow-up8·2 days agoThe long way is point in polygon: https://en.wikipedia.org/wiki/Point_in_polygon If you’re using web, the easy way is use SVG
The long way is point in polygon: https://en.wikipedia.org/wiki/Point_in_polygon
If you’re using web, the easy way is use SVG