I'm working on making a program that is going to show wind direction.
I have made a circle and a line that goes from the middle and to the edge of the circle.
I was never any good in math class when it came to cricles, so how do I calculate the rotation of the line? the middle is fixed, but I need to be able to rotate the line 360 degrees, so 180 would be showing down, and 0 pointing up, etc...
I have made a circle and a line that goes from the middle and to the edge of the circle.
I was never any good in math class when it came to cricles, so how do I calculate the rotation of the line? the middle is fixed, but I need to be able to rotate the line 360 degrees, so 180 would be showing down, and 0 pointing up, etc...