Everything in Degrees instead of Radians
#10
Wait a minute.... how are you getting zero degrees to point to the right along the x axis? When I pop 0 degrees into sin and cos I end up with it going along the Y axis.

OH CRUD. Have I been failing to account for the top left corner being 0,0 on the standard screen?

I've been doing:
newX= oldx+range*sin(angle)
newY= oldy+range*cos(angle)

which of couse works but 0 degress points straight "down" the screen along the Y axis.
Reply


Messages In This Thread
RE: Everything in Degrees instead of Radians - by James D Jarvis - 10-14-2022, 06:05 PM



Users browsing this thread: 7 Guest(s)