通常在 Java 中,当我需要存储与某些图形属性相关的 2 个 int 值时,我使用维度对象:
Dimension d = new Dimension(x,y);
C#(和 XNA)中是否有类似的对象?我目前正在使用 Vector2,但它是为浮点值设计的。 实际上我需要这样的结构来创建屏幕坐标列表。我正在寻找以这种方式使用的东西:
IList<Dimension> list = new List<Dimension>();
list.add(new Dimension(800,600));
...
最佳答案
关于c# - 从 Java 到 C# : storing couple of int using Dimension,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7913694/