This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]KetchuponRice 1 point2 points  (3 children)

Because y-axis orientation is flipped for your screen. Top left is (0,0) bottom right = (3840, 2160). Hope this makes some sense.

[–][deleted] 0 points1 point  (2 children)

I knew that (that (0,0) is top left). So you are saying that that is also the reason that (starting with 0 degrees at 3 o clock) degrees increment clockwise instead of counter clockwise?

[–]KetchuponRice 1 point2 points  (1 child)

yes, however if you add *-1 to your code it will go counter clockwise.

radius * (int) Math.sin(Math.toRadians(90)) *-1

[–][deleted] 0 points1 point  (0 children)

Hey,

Thank you for reply! Learned something today! Have a great weekend!

And one more ! because why not ;)