final StringBuilder code;
final double angle = shape.getRotationAngle();
if (LNumber.equalsDouble(angle, 0.)) code = null;
else {
final IPoint gravityCenter = shape.getGravityCentre();
final double cx = (gravityCenter.getX() - position.getX()) / ppc;
final double cy = (position.getY() - gravityCenter.getY()) / ppc;
final double x = LNumber.getCutNumber(-Math.cos(-angle) * cx + Math.sin(-angle) * cy + cx);
final double y = LNumber.getCutNumber(-Math.sin(-angle) * cx - Math.cos(-angle) * cy + cy);
code = new StringBuilder();
code.append("\\rput{").append((float) LNumber.getCutNumber(-Math.toDegrees(shape.getRotationAngle()) % 360)).append('}').append('('); //$NON-NLS-1$