\r
/** Returns the region's width. May be negative if the texture region is flipped horizontally. */\r
public int getRegionWidth () {\r
- return (int)((u2 - u) * texture.getWidth());\r
+ return (int)(u2 * texture.getWidth() - u * texture.getWidth());\r
}\r
\r
public void setRegionWidth (int width) {\r
\r
/** Returns the region's height. May be negative if the texture region is flipped horizontally. */\r
public int getRegionHeight () {\r
- return (int)((v2 - v) * texture.getHeight());\r
+ return (int)(v2 * texture.getHeight() - v * texture.getHeight());\r
}\r
\r
public void setRegionHeight (int height) {\r