[#540] avoid unnecessary math if angle is equal to 0
[#540][#542] added support for object rotation in Tiled 0.10