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 游戏工作室,想知道Vector2和Vector4
Vector2
Vector4
谢谢 :)
Vector2包含 2 个浮点组件。它主要用于 2D 图形(2D -> 2 个组件)
Vector4包含 4 个浮点组件。它用于 3D 图形(在 3D 仿射空间中,可以使用齐次坐标(4 个分量)完成 3D 仿射变换)