Add rotation support to rasterizer