OSDN Git Service

who killed Sprite#getRotation?
authorbadlogic <badlogicgames@gmail.com>
Fri, 13 Sep 2013 11:07:44 +0000 (13:07 +0200)
committerbadlogic <badlogicgames@gmail.com>
Fri, 13 Sep 2013 11:07:44 +0000 (13:07 +0200)
gdx/src/com/badlogic/gdx/graphics/g2d/Sprite.java

index 8d8abdc..19ca53e 100644 (file)
@@ -293,6 +293,13 @@ public class Sprite extends TextureRegion {
                this.rotation = degrees;\r
                dirty = true;\r
        }\r
+       \r
+       /**\r
+        * @return the rotation of the sprite in degrees\r
+        */\r
+       public float getRotation() {\r
+               return rotation;\r
+       }\r
 \r
        /** Sets the sprite's rotation in degrees relative to the current rotation.\r
         ** Rotation is centered on the origin set in {@link #setOrigin(float, float)} */\r