Fixed rotated Polygon raytracing and shadow casting