-
assigned issue to
shape.rotation() thinks clockwise is positive, while shape.rotate() thinks counterclockwise is positive.
Issue #49
resolved
Here's a pretty silly bug: when you call shape.rotate(x), it rotates the object counter-clockwise x degrees from what we usually call zero on the degree map. However, when you call the shape.rotation() method, it measures how much the object has rotated in the CLOCKWISE direction, which, in this case, would be -x. Altogether, it should be easy to fix--just make the rotation value consider counterclockwise rotation positive (or vice-versa, if you prefer).
Comments (3)
-
-
- changed status to resolved
640ebb5 should fix the issue, but please be on the lookout for places that may have relied on the value being backwards.
-
Oh, by the way, you don't have to convert items to Python's print function to string. They will automatically be converted:
x = 1.2 print(x)
- Log in to comment