Support for rotated atlas regions in C#