public AffineTransform getAffineTransform(Position pos, Rotation rotation) { AffineTransform r = rotation.getAffineTransform(getSquareSize()); AffineTransform t = AffineTransform.getTranslateInstance(getOffsetX(pos), getOffsetY(pos)); t.concatenate(r); return t; }
public Rotation extractTileRotation(Element el) { return Rotation.valueOf(el.getAttribute("rotation")); }