GitHub - Neo-50/Rotating-Right-Triangle: A simple program for visualizing trig functions cosine and sine and how they can be used to calculate x and y values for a point on a circle.
A simple program for visualizing trig functions cosine and sine and how they can be used to calculate x and y values for a point on a circle. - Neo-50/Rotating-Right-Triangle
If anyone would like a coding challenge, I am curious about how to modify this so that the angle increases only by whole numbers (e.g. angle = 1, 2, 3, 4) when the user presses the right or left arrow keys. I think the solution may be to use vectors instead of trig functions, but I'm fairly new to coding and am still trying to get it working.