Upscaling and rotating texture
I've got a method for upscaling and rotating a texture and it essentially works already except that I'm trying to make it more efficient by making it so it only loops over the parts of the result that could potentially have pixels. (skip over known empty parts)
In my visualization here, purple is startX and orange is endX. If ths problem was solved, purple would follow the bounding box's left edge and orange would follow the bounding box's right edge.
This is really a geometry problem, not even C# specific. But every time I try to do it, I screw it up so that it cuts off part of the scaled and rotated result texture and Claude the LLM fails at this really hard.
Minimum reproduction project is here: https://github.com/BenMcLean/UpscaleAndRotate
In my visualization here, purple is startX and orange is endX. If ths problem was solved, purple would follow the bounding box's left edge and orange would follow the bounding box's right edge.
This is really a geometry problem, not even C# specific. But every time I try to do it, I screw it up so that it cuts off part of the scaled and rotated result texture and Claude the LLM fails at this really hard.
Minimum reproduction project is here: https://github.com/BenMcLean/UpscaleAndRotate

GitHub
Contribute to BenMcLean/UpscaleAndRotate development by creating an account on GitHub.
