SFML community forums
Help => Graphics => Topic started by: Flaze07 on July 14, 2017, 06:11:41 pm
-
hi, is the direction of shape (rectangle) upward, left, right, or downward when it has the rotation of zero ???
-
cos(0) == 1 (X axis)
sin(0) == 0 (Y axis)
So, in default SFML coordinates, angle zero is towards the right.
-
I see...so it is not up...well the whole time I thought it was up ::)
-
I'm not sure that a rectangle can be described that clearly as having a "direction". Is its width the direction of the rectangle or its height? I suppose it would depend on which is 'longer'.
If its rotation is zero, its width is to the right and its height is downwards.