shape.rotation() thinks clockwise is positive, while shape.rotate() thinks counterclockwise is positive.

Issue #49 resolved
Muhsin King created an issue

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)

  1. Doug Blank

    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)
    
  2. Log in to comment