public float getWidthRatio () { return super.getWidth() / region.getRotatedPackedWidth(); }
@Override /** Flips the region, adjusting the offset so the image appears to be flip as if no whitespace has been removed for packing. */ public void flip (boolean x, boolean y) { super.flip(x, y); if (x) offsetX = originalWidth - offsetX - getRotatedPackedWidth(); if (y) offsetY = originalHeight - offsetY - getRotatedPackedHeight(); }
@Override public float getWidth () { return super.getWidth() / region.getRotatedPackedWidth() * region.originalWidth; }
public float getWidthRatio () { return super.getWidth() / region.getRotatedPackedWidth(); }
@Override public float getWidth () { return super.getWidth() / region.getRotatedPackedWidth() * region.originalWidth; }
public float getWidthRatio () { return super.getWidth() / region.getRotatedPackedWidth(); }
@Override public float getWidth () { return super.getWidth() / region.getRotatedPackedWidth() * region.originalWidth; }
@Override /** Flips the region, adjusting the offset so the image appears to be flip as if no whitespace has been removed for packing. */ public void flip (boolean x, boolean y) { super.flip(x, y); if (x) offsetX = originalWidth - offsetX - getRotatedPackedWidth(); if (y) offsetY = originalHeight - offsetY - getRotatedPackedHeight(); }
@Override /** Flips the region, adjusting the offset so the image appears to be flip as if no whitespace has been removed for packing. */ public void flip (boolean x, boolean y) { super.flip(x, y); if (x) offsetX = originalWidth - offsetX - getRotatedPackedWidth(); if (y) offsetY = originalHeight - offsetY - getRotatedPackedHeight(); }