I'm trying to find x,y coordinate based on trigonometry within the edge of a circle according to my mouse position.
As you can see from the gif image, as your mouse move, the tip of the triangle is always pointing at the edge of the circle as my mouse is moving around the ellipse.
I'm using P5.js and I wish to know how to write this and appreciate if you can walk me through trigonometry behind this, so I can leverage this knowledge and try out more types of visual programming ideas that are in my head.
