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.
当我曾经为 iphone 编程时,我使用结构来存储我的顶点,使用嵌套的 for 循环进行平铺。现在在java中我似乎找不到办法做到这一点。谁能帮我解决这个问题?谢谢。
Java中没有结构这样的东西。您当然可以创建自己的Vertex类(X 和 Y 坐标有两个值),但我认为最简单的方法就是使用内置的Point类。
Vertex
您可以尝试Buffer使用一些辅助方法以您想要的方式打包数据。
Buffer