10-14-2022, 06:05 PM
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.
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.