Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
好吧,再次嗨,我有一个问题,这次是关于脚本的。 直截了当,我想知道如何获得在 XNA 上旋转的纹理的宽度和高度。
newWidth = textureHeight * Math.Sin(angle) + textureWidth * Math.Cos(angle); newHeight = textureHeight * Math.Cos(angle) + textureWidth * Math.Sin(angle);