convert Cartesian width and height to Isometric
问题 I'm trying to create an Isometric game in the SDL graphics library. When you render in SDL you require a source rectangle and a destination rectangle. The source rectangle is the portion of the texture you have loaded that you wish to render and the destination rectangle is the area on the screen you are rendering to. Rectangles simply consist of 4 properties, X position, Y position, Width, and Height. Now say I have a Cartesian destination rectangle with these coordinates: X=20, Y=10, Width