double deltaDegrees = 0;
double deltaScaleX = 1;
double deltaScaleY = 1;
Matrix matrix = new Matrix();
Rotation rotation = sprite.getRotation();
Scaling scaling = sprite.getScaling();
Translation translation = sprite.getTranslation();
XElement element = getElement(sprite);
Style style = element.getStyle();
Element skew = element.getPropertyJSO("skew").cast();
if (rotation != null) {
matrix.rotate(rotation.getDegrees(), rotation.getX(), rotation.getY());
deltaDegrees += rotation.getDegrees();
}
if (scaling != null) {
matrix.scale(scaling.getX(), scaling.getY(), scaling.getCenterX(), scaling.getCenterY());
deltaScaleX *= scaling.getX();
deltaScaleY *= scaling.getY();
}
if (translation != null) {
matrix.translate(translation.getX(), translation.getY());
}
if (viewBoxShift != null) {