Draw Triangle within Circle

hi. i was executing the lookAndFeel-tutorial when there was this little challenge to add stuff to the code that makes the “pointer” look like an arrow. after i did that i asked myself if it’s possible to draw the lines in such a way that they end perfectly at the intersections with the circle. i tried different stuff but i never before cared about geometrics and it shows. may anyone show me the way? :>